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

2014-03-07 Thread Ian Bolton
> Thanks for the feedback, Joseph. > > I've been working on the patch, but I see in gcc/opts.c that there is > a definite distinction between set_fast_math_flags and > set_unsafe_math_optimizations_flags. I'm thinking this is more of a > fast-math thing than an unsafe_math_optimizations thing, so

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

2014-03-07 Thread Ian Bolton
> -Original Message- > From: Joseph S. Myers > On Thu, 6 Mar 2014, Ian Bolton wrote: > > > 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 ha

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

2014-03-06 Thread Tim Prince
On 3/6/2014 1:01 PM, Joseph S. Myers wrote: 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 -fu

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

2014-03-06 Thread Joseph S. Myers
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 >

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

2014-03-06 Thread Ian Bolton
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? I see in gcc/opts.c th