arm-rtems/elf -mthumb bad code generated

Joel Sherrill joel.sherrill@OARcorp.com
Mon Feb 12 10:45:00 GMT 2001


CVS gcc, binutils, newlib

I think this is the bad assembly based on the error messages

        @ Inlined umul_ppmm
        mov     r1, r2, lsr #16
        mov     ip, r3, lsr #16          

This is the command line to get the preprocessed output.

cd  /opt/test-gcc/build/b-gcc/gcc
/opt/test-gcc/build/b-gcc/gcc/xgcc -B/opt/test-gcc/build/b-gcc/gcc/ -nostdinc
-B
/opt/test-gcc/build/b-gcc/arm-rtems/newlib/ -isystem
/opt/test-gcc/build/b-gcc/a
rm-rtems/newlib/targ-include -isystem
/opt/test-gcc/cvs-objs/gcc/newlib/libc/inc
lude -B/usr2/test-gcc/install/arm-rtems/bin/
-B/usr2/test-gcc/install/arm-rtems/
lib/ -isystem /usr2/test-gcc/install/arm-rtems/include -O2
-I../../../cvs-objs/g
cc/gcc/../newlib/libc/sys/rtems/include -DCROSS_COMPILE -DIN_GCC    -W -Wall
-Ww
rite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include 
-Dinhi
bit_libc -fno-inline -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEED
ED -Dinhibit_libc -I. -I. -I../../../cvs-objs/gcc/gcc
-I../../../cvs-objs/gcc/gc
c/. -I../../../cvs-objs/gcc/gcc/config -I../../../cvs-objs/gcc/gcc/../include 
-
mthumb -DL_muldi3 -c ../../../cvs-objs/gcc/gcc/libgcc2.c -E >l.c

This is the command line to reproduce the error:

/opt/test-gcc/build/b-gcc/gcc/xgcc -v -B/opt/test-gcc/build/b-gcc/gcc/ \
  -B/usr2/test-gcc/install/arm-rtems/bin/ \
  -mthumb l.c                                 


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985
l.c.gz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: l.c.gz
Type: application/x-gzip
Size: 3824 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20010212/39543d8c/attachment.bin>


More information about the Gcc-bugs mailing list