This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30724] Wrong code from -O2 taking ptr=(struct *)&int_proc_parm 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: 7 Feb 2007 06:51:55 -0000
- Subject: [Bug c/30724] Wrong code from -O2 taking ptr=(struct *)&int_proc_parm on x86_64
- References: <bug-30724-14061@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-02-07 06:51 -------
If you use -fno-strict-aliasing and it works, that should tell you something
right there really.
Anyways you are violating C/C++ aliasing rules, see PR 21920.
*** 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=30724