[Bug rtl-optimization/45813] alias analysis problem ?

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 28 14:06:00 GMT 2010


Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2010.09.28 09:17:33
               date|                            |
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-09-28 09:17:33 UTC ---
I can't reproduce this on x86_64-linux with GCC 4.4.4 and -O2 (what options
did you use?).  A cross to arm I still have around for GCC 4.5.0 also doesn't
show the problem.

I used

unsigned short ReadLE16U ( volatile unsigned char *pmem)
  unsigned short val;
  unsigned char *bytes = (unsigned char *)&val;
  bytes[0] = pmem[0];
  bytes[1] = pmem[1];
  return val;

if that is not enough to reproduce the problem please provide
complete preprocessed source that can be compiled.

More information about the Gcc-bugs mailing list