This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: optimization/7427: gcc-3.1.1 -O2 problem for checksum calculation (powerpc)


The following reply was made to PR optimization/7427; it has been noted by GNATS.

From: Andrew Pinski <pinskia@physics.uc.edu>
To: makoto@ki.nu
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: optimization/7427: gcc-3.1.1 -O2 problem for checksum calculation (powerpc)
Date: Sun, 28 Jul 2002 18:34:54 -0400

 Not a bug in gcc, but a bug in your code because of C aliasing rules.
 
 Thanks,
 Andrew Pinski
 
 
 On Sunday, July 28, 2002, at 06:17 , makoto@ki.nu wrote:
 
 >
 > 	unsigned short *w = (void *)&tmp;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]