[Bug c/46788] unsigned int possible treated as signed in a union/struct
mikpe at it dot uu.se
gcc-bugzilla@gcc.gnu.org
Sat Dec 4 17:31:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46788
Mikael Pettersson <mikpe at it dot uu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpe at it dot uu.se
--- Comment #2 from Mikael Pettersson <mikpe at it dot uu.se> 2010-12-04 17:31:11 UTC ---
I can reproduce this with FSF gcc-4.5/4.6 and binutils-2.20.1 on
armv5tel-linux-gnueabi:
> gcc/xgcc -Bgcc -mcpu=cortex-m3 -mthumb -O2 -c MyFile.c
/tmp/ccCisNkW.s: Assembler messages:
/tmp/ccCisNkW.s:27: Error: immediate value out of range -- `movt r3,-32768'
With gcc-4.4 the error does not occur.
More information about the Gcc-bugs
mailing list