[cfe-dev] how to set clang to fastmath?

Chad Rosier mcrosier at codeaurora.org
Thu Aug 7 09:26:23 PDT 2014


>> > Hello,
>> >
>> > In order to compile a software (desmume-svn5045 [1]), I need to set
>> clang
>> > to fastmath.
>> > It means that I need to change the floating point math mode I use in
>> > clang.
>> > If I do this, we told me that I should not encounter this [2]
>> segmentation
>> > fault at runtime.
>> >
>> > Do you know what option I must give to clang to set it to fastmath
>> please?
>> > (I don't find the option in the manual [3])
>>
>> Perhaps, -ffast-math?
>>
>
> Yes, that's it, thank you.

You're very welcome!






More information about the cfe-dev mailing list