This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/7427: gcc-3.1.1 -O2 problem for checksum calculation (powerpc)
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 28 Jul 2002 22:36:01 -0000
- Subject: Re: optimization/7427: gcc-3.1.1 -O2 problem for checksum calculation (powerpc)
- Reply-to: Andrew Pinski <pinskia at physics dot uc dot edu>
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;