This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51392] Wrong code with -Os when __attribute__((__const__)) function returns structure
- From: "cybersphinx.gcc at dispostable dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 03 Dec 2011 16:27:09 +0000
- Subject: [Bug c++/51392] Wrong code with -Os when __attribute__((__const__)) function returns structure
- Auto-submitted: auto-generated
- References: <bug-51392-4@http.gcc.gnu.org/bugzilla/>
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.