Re: [LTP] [PATCH 1/2] hugemmap15: Compile with -O

Tarun Sahu
2023-02-10T22:05:10Z

Cyril Hrubis <chrubis@suse.cz> writes:

Hi Cyril,

I tested with pragma, This works well.
Will send a patch.

Thanks
Tarun
> Hi!
>> I tested with clang with -O, it fails. So yeah it is not turning off
>> relevant optimization.
>
> There seems to be pragma to turn off optimizations only for clang, can
> you try if adding:
>
> #pragma clang optimize off
>
> to the source and removeing the -O0 from the Makefile works?
>
> --
> Cyril Hrubis
> chrubis@suse.cz
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp