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: "mikpe at it dot uu.se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 04 Dec 2011 14:04:06 +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
Mikael Pettersson <mikpe at it dot uu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpe at it dot uu.se
--- Comment #2 from Mikael Pettersson <mikpe at it dot uu.se> 2011-12-04 14:04:06 UTC ---
I can reproduce the error on i686-linux with g++ 4.7-20111203, 4.6-20111202,
and 4.5-20111201 at -Os/-O1. Works at -O0/-O3, -O2 varies. 4.4-20111108 seems
to work.