This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/53663] 4.7 inconsistent inline handling of bool within union


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]