This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Shouldn't unsafe-math-optimizations (re-)enable fp-contract=fast?


On Thu, 6 Mar 2014, Ian Bolton wrote:

> Hi there,
> 
> I see in common.opt that fp-contract=fast is the default for GCC.
> 
> But then it gets disabled in c-family/c-opts.c if you are using ISO C
> (e.g. with -std=c99).
> 
> But surely if you have also specified -funsafe-math-optimizations then
> it should flip it back onto fast?

That seems reasonable.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]