|
Message
From: Matjaz Breskvar<phoenix@o...>
Date: Tue Jan 27 15:02:25 CET 2004
Subject: [openrisc] gcc-3.2.3 bugs after merge
* Heiko Panther (heiko.panther@w...) wrote: > I built a or32-uclinux toolchain from the sources I used for or32-elf, > and the or32-uclinux-gcc compiled your preprocessed source with the same > warnings, but no error. > > This is how I configured: > > ../gcc-3.2.3/configure --host=powerpc-apple-darwin6.8 > --target=or32-uclinux --prefix=/opt/or32-uclinux --enable-threads > --with-gnu-as --with-gnu-ld --enable-languages=c
how did you compile it. did you use the same flags as were used in linux ?
or32-uclinux-gcc -D__KERNEL__ -I/center/opencores/toolchains/oc-2.31/p_root/linux-2.4/include -Wall -Wstr ict-prototypes -Werror-implicit-function-declaration -fno-strict-aliasing -O -nostdlib -fomit-frame-point er -I/center/opencores/toolchains/oc-2.31/p_root/linux-2.4/arch/or32 -fsigned-char -msoft-float -pipe -ff ixed-r2 -Wno-uninitialized -D__linux__ -nostdinc -iwithprefix include -DKBUILD_BASENAME=serial -DEXPORT _SYMTAB -c serial.c
for example if i compile it without any flags it works:
dua:/__test# cp serial.E serial.c dua:/__test# or32-uclinux-gcc -c serial.c serial.c: In function rs_ioctl': serial.c:2646: warning: passing arg 1 of signal_pending' discards qualifiers from pointer target type serial.c: In function rs_wait_until_sent': serial.c:2921: warning: passing arg 1 of signal_pending' discards qualifiers from pointer target type serial.c: In function block_til_ready': serial.c:2963: warning: initialization discards qualifiers from pointer target type serial.c:3070: warning: passing arg 1 of signal_pending' discards qualifiers from pointer target type dua:/__test# ll total 835 drwxr-xr-x 2 root root 120 Jan 27 13:57 ./ drwxr-xr-x 36 root root 2216 Jan 27 13:56 ../ -rw-r--r-- 1 root root 391140 Jan 27 13:56 serial.E -rw-r--r-- 1 root root 391140 Jan 27 13:57 serial.c -rw-r--r-- 1 root root 65536 Jan 27 13:57 serial.o
but adding just -O makes it crash
dua:/__test# rm serial.o dua:/__test# or32-uclinux-gcc -O -c serial.c serial.c: In function rs_ioctl': serial.c:2646: warning: passing arg 1 of signal_pending' discards qualifiers from pointer target type serial.c: In function rs_wait_until_sent': serial.c:2921: warning: passing arg 1 of signal_pending' discards qualifiers from pointer target type serial.c: In function block_til_ready': serial.c:2963: warning: initialization discards qualifiers from pointer target type serial.c:3070: warning: passing arg 1 of signal_pending' discards qualifiers from pointer target type /center/opencores/toolchains/oc-2.31/p_root/linux-2.4/include/asm/atomic.h: In function atomic_add': /center/opencores/toolchains/oc-2.31/p_root/linux-2.4/include/asm/atomic.h:27: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
regards, p.
|
 |