This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/53663] 4.7 inconsistent inline handling of bool within union
- 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, 23 Sep 2012 11:56:50 +0000
- Subject: [Bug tree-optimization/53663] 4.7 inconsistent inline handling of bool within union
- Auto-submitted: auto-generated
- References: <bug-53663-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53663
Mikael Pettersson <mikpe at it dot uu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpe at it dot uu.se
--- Comment #6 from Mikael Pettersson <mikpe at it dot uu.se> 2012-09-23 11:56:50 UTC ---
I can reproduce the wrong-code with gcc 4.7-20120922 and 4.8-20120916, at -O1,
on x86_64-linux. -O2 avoids the wrong-code, but if I replace the "*vp = v" with
the equivalent __builtin_memcpy() then -O2 also generates wrong code. gcc-4.6
seems to work correctly.