[Bug c++/51392] Wrong code with -Os when __attribute__((__const__)) function returns structure

cybersphinx.gcc at dispostable dot com gcc-bugzilla@gcc.gnu.org
Sat Dec 3 16:27:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51392

cybersphinx <cybersphinx.gcc at dispostable dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cybersphinx.gcc at
                   |                            |dispostable dot com

--- Comment #1 from cybersphinx <cybersphinx.gcc at dispostable dot com> 2011-12-03 16:27:09 UTC ---
With Debian's gcc 4.6.2-5 the testcase fails with -Os, -O1, -O2, ok with -O0,
-O3, -Ofast. 4.5.3-9 fails with -Os, -O1, ok with -O0, -O2, -O3.



More information about the Gcc-bugs mailing list