GCC 3.1 C cross compiler for arm-elf with -Os emits bad assembler

Johannes Elg (EBT) Johannes.Elg@ebt.ericsson.se
Tue May 21 09:11:00 GMT 2002


Hello,

---- SETUP/ENVIRONMENT:
 
Environment: CYGWIN
 
$ arm-elf-gcc -v
Reading specs from /usr/local/lib/gcc-lib/arm-elf/3.1/specs
Configured with: /usr/src/gcc-3.1/configure --target=arm-elf --with-newlib --enable-languages=c -v
Thread model: single
gcc version 3.1
 
$ as -v
GNU assembler version 2.11.92 (i686-pc-cygwin) using BFD version 2.11.92 20011001
 
 
--- BUG:
 
$ arm-elf-gcc -mthumb -mlittle-endian -isystem /usr/local/arm-elf/include -Os -c -o gccbug.o ../Source/apint/gccbug.c --save-temps
gccbug.s: Assembler messages:
gccbug.s:31: Error: lo register required
 
Skipping optimization or using -O2 instead of -Os works.
 
Best Regards 
/Johannes Elg
mailto:Johannes.Elg@ebt.ericsson.se <mailto:Johannes.Elg@ebt.ericsson.se> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20020521/f57738ba/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gccbug.i
Type: application/octet-stream
Size: 623 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20020521/f57738ba/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gccbug.s
Type: application/octet-stream
Size: 568 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20020521/f57738ba/attachment-0001.obj>


More information about the Gcc-bugs mailing list