This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/4570: error reading bytes from double variable
- From: aoliva at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, philippe_ribet at hotmail dot com
- Date: 25 Nov 2001 16:45:59 -0000
- Subject: Re: optimization/4570: error reading bytes from double variable
[Get raw message]
Synopsis: error reading bytes from double variable
State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Sun Nov 25 08:45:58 2001
State-Changed-Why:
Not a bug. GCC is allowed by the aliasing rules in the C Standard to assume an int* can't possibly point to the same memory as e, that has type double. If you depend on this behavior, use -fno-strict-aliasing, or access the storage using pointers to char, that can alias anything.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4570&database=gcc