This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33999] g++ optimizer(-O2) generates wrong code in 32bit mode on x86_64
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Nov 2007 22:25:54 -0000
- Subject: [Bug c++/33999] g++ optimizer(-O2) generates wrong code in 32bit mode on x86_64
- References: <bug-33999-15307@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-11-05 22:25 -------
This is one of the most obvious violations of C/C++ aliasing rules.
You are accessing a _GUID as an int. Either use -fno-strict-aliasing, an union
or memcpy to get around the aliasing violation
*** This bug has been marked as a duplicate of 21920 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33999