Re: __attribute__((optimize)) and fast-math related oddities

2009-10-20 Thread Richard Guenther
On Tue, Oct 20, 2009 at 1:54 AM, tbp tbp...@gmail.com wrote: On Mon, Oct 19, 2009 at 7:34 PM, Ian Lance Taylor i...@google.com wrote: Please file a bug report. __attribute__((optimize())) is definitely only half-baked. Apparently the code i've posted is just a variation around that 1 year old

Re: __attribute__((optimize)) and fast-math related oddities

2009-10-20 Thread Michael Meissner
On Tue, Oct 20, 2009 at 11:13:48AM -0700, H.J. Lu wrote: On Tue, Oct 20, 2009 at 2:19 AM, Richard Guenther richard.guent...@gmail.com wrote: On Tue, Oct 20, 2009 at 1:54 AM, tbp tbp...@gmail.com wrote: On Mon, Oct 19, 2009 at 7:34 PM, Ian Lance Taylor i...@google.com wrote: Please file a

Re: __attribute__((optimize)) and fast-math related oddities

2009-10-19 Thread Ian Lance Taylor
tbp tbp...@gmail.com writes: Merrily trying to make a test-case showing how unmanageable it is to try to override *math* flags per function, i soon had to stop because... Please file a bug report. __attribute__((optimize())) is definitely only half-baked. Ian

Re: __attribute__((optimize)) and fast-math related oddities

2009-10-19 Thread H.J. Lu
On Mon, Oct 19, 2009 at 10:34 AM, Ian Lance Taylor i...@google.com wrote: tbp tbp...@gmail.com writes: Merrily trying to make a test-case showing how unmanageable it is to try to override *math* flags per function, i soon had to stop because... Please file a bug report.

Re: __attribute__((optimize)) and fast-math related oddities

2009-10-19 Thread tbp
On Mon, Oct 19, 2009 at 7:34 PM, Ian Lance Taylor i...@google.com wrote: Please file a bug report. __attribute__((optimize())) is definitely only half-baked. Apparently the code i've posted is just a variation around that 1 year old PR 37565 and if that doesn't work, worrying about the rest is

__attribute__((optimize)) and fast-math related oddities

2009-10-17 Thread tbp
Hang on while i put on my flame-proof suit. There. Merrily trying to make a test-case showing how unmanageable it is to try to override *math* flags per function, i soon had to stop because... $ cat amusing.cc #include cmath static __attribute__((optimize(-fno-associative-math))) double