This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30553] Registers not spilled to the stack properly when accessing address of parameter in function call
- 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: 23 Jan 2007 05:08:50 -0000
- Subject: [Bug c/30553] Registers not spilled to the stack properly when accessing address of parameter in function call
- References: <bug-30553-13615@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-01-23 05:08 -------
This is a very obvious case of violating C/C++ aliasing rules.
You are accessing a double as an int which is undefined by the C/C++ aliasing
rules. either use -fno-strict-aliasing, memcpy or an union (which is only
unspecified behavior in C while GCC defines it).
*** 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=30553