https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45478
Bug 45478 depends on bug 37565, which changed state.
Bug 37565 Summary: __optimize__ attribute doesn't work correctly
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37565
What|Removed |Added
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45478
Andrew Pinski changed:
What|Removed |Added
Resolution|--- |FIXED
Keywords|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45478
--- Comment #5 from Zdenek Sojka zsojka at seznam dot cz 2010-11-10 01:28:36
UTC ---
Created attachment 22361
-- http://gcc.gnu.org/bugzilla/attachment.cgi?id=22361
another testcase
This was reduced from gcc.target/i386/funcspec-3.c
Compiler
--- Comment #4 from zsojka at seznam dot cz 2010-09-02 17:32 ---
Created an attachment (id=21674)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21674action=view)
another testcase
This needs -O as well:
$ gcc -O pr45478-4.c
Related valgrind output:
$ valgrind cc1 -O -quiet