http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45813
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.