This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/50782] optimize pragma not applying fast-math
- From: "ejtttje at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Oct 2011 21:16:23 +0000
- Subject: [Bug rtl-optimization/50782] optimize pragma not applying fast-math
- Auto-submitted: auto-generated
- References: <bug-50782-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50782
--- Comment #1 from Ethan Tira-Thompson <ejtttje at gmail dot com> 2011-10-18 21:16:23 UTC ---
I'm sorry, apparently I messed something up in my testing.
The output of -O3 is actually:
000
111
The output of -O0 is:
100
111
So the optimize attribute is being applied after/including any inlined
functions. Obviously, when the function is not inlined, it is not affected by
the attribute.
The primary bug of the two lines not being the same remains the same.