public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/2911
@ 2001-05-23 9:16 jsm28
0 siblings, 0 replies; only message in thread
From: jsm28 @ 2001-05-23 9:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR optimization/2911; it has been noted by GNATS.
From: jsm28@gcc.gnu.org
To: jsm28@cam.ac.uk, bonachea@cs.berkeley.edu, gcc-gnats@gcc.gnu.org,
nobody@gcc.gnu.org, titanium-devel@cs.berkeley.edu
Cc:
Subject: Re: optimization/2911
Date: 23 May 2001 16:11:45 -0000
Synopsis: Invalid C optimization on structs (regression)
State-Changed-From-To: open->closed
State-Changed-By: jsm28
State-Changed-When: Wed May 23 09:11:45 2001
State-Changed-Why:
Not a bug; your program violates ISO C aliasing rules by
accessing an object as both an "int *" and a "void *".
If you can't fix your program, use -fno-strict-aliasing.
(Note that GCC does allow type punning through unions.)
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2911&database=gcc
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-05-23 9:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-23 9:16 optimization/2911 jsm28
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).