optimization/2911

jsm28@gcc.gnu.org jsm28@gcc.gnu.org
Wed May 23 09:16:00 GMT 2001


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



More information about the Gcc-prs mailing list