Code generation BUG in arm-elf-gcc

Scott Bambrough scottb@netwinder.org
Wed May 17 11:39:00 GMT 2000


This bug has been around for a while.  There is a patch in the 2.95.2 tree to
prevent it from happening.  This is described as bug 10 in the following with
pointers back to the gcc-bugs thread on the topic.

http://www.netwinder.org/~scottb/notes/Compiler-Notes-1.html#ss1.2

It looks like it hasn't been fixed yet.

Scott

Vadim Lebedev wrote:
> 
> arm-elf-gcc generates refernce to non-existent label.
> 
> in the resulting file gccbug.s  near line 147, there is  following following
> code
> .L563:
>         .word   .LC0
>         .word   .L561
> 
> but the label .L561 does not exist!!!!
> 
> arm-elf-gcc -D__KERNEL__ -I/home/vadim/AplioTRIO/linux/include -mcpu=arm7tdm
> i -fno-strict-aliasing -mapcs-32 -Wall -Wstrict-prototypes -O2  -fno-strengt
> h-reduce -v -DNO_MM   -S  -save-temps gccbug.c
> Reading specs from /home/vadim/arm/lib/gcc-lib/arm-elf/2.96/specs
> gcc version 2.96 20000517 (experimental)
> 
> /home/vadim/arm/lib/gcc-lib/arm-elf/2.96/cpp -lang-c -v -I/home/vadim/AplioT
> RIO/linux/include -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -
> Acpu(arm) -Amachine(arm) -D__CHAR_UNSIGNED__ -D__OPTIMIZE__ -Wall -Wstrict-p
> rototypes -D__ARM_ARCH_4T__ -D__APCS_32__ -D__ARMEL__ -Darm_elf -D__ELF__ -D
> arm -D__arm__ -D__KERNEL__ -DNO_MM gccbug.c gccbug.i
> GNU CPP version 2.96 20000517 (experimental) (cpplib)
>  (ARM/ELF non-Linux)
> ignoring nonexistent directory `/home/vadim/arm/arm-elf/sys-include'
> #include "..." search starts here:
> #include <...> search starts here:
>  /home/vadim/AplioTRIO/linux/include
>  /home/vadim/arm/lib/gcc-lib/arm-elf/2.96/include
>  /home/vadim/arm/arm-elf/include
> End of search list.
>  /home/vadim/arm/lib/gcc-lib/arm-elf/2.96/cc1 gccbug.i -quiet -dumpbase
> gccbug.c -mcpu=arm7tdmi -mapcs-32 -O2 -Wall -Wstrict-prototypes -version -fn
> o-strict-aliasing -fno-strength-reduce -o gccbug.s
> GNU C version 2.96 20000517 (experimental) (arm-elf) compiled by GNU C
> version 2.7.2.3.
> In file included from /home/vadim/AplioTRIO/linux/include/asm/termios.h:59,
>                  from /home/vadim/AplioTRIO/linux/include/linux/termios.h:5,
>                  from /home/vadim/AplioTRIO/linux/include/linux/tty.h:20,
>                  from /home/vadim/AplioTRIO/linux/include/linux/sched.h:33,
>                  from gccbug.c:38:
> /home/vadim/AplioTRIO/linux/include/linux/string.h:30: warning: conflicting
> types for built-in function `memset'
> /home/vadim/AplioTRIO/linux/include/linux/string.h:31: warning: conflicting
> types for built-in function `memcpy'
> /home/vadim/AplioTRIO/linux/include/linux/string.h:34: warning: conflicting
> types for built-in function `memcmp'
> 
>   --------------------------------------------------------------------------------
>                          Name: gccbug.i.gz
>    gccbug.i.gz           Type: application/x-gzip
>                      Encoding: base64
>               Download Status: Not downloaded with message

-- 
Scott Bambrough - Software Engineer
REBEL.COM    http://www.rebel.com
NetWinder    http://www.netwinder.org


More information about the Gcc-bugs mailing list