This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
GCC 3.0: Bootstrap failure with current sources on powerpc-linux
- To: gcc-bugs at gcc dot gnu dot org
- Subject: GCC 3.0: Bootstrap failure with current sources on powerpc-linux
- From: Andreas Jaeger <aj at suse dot de>
- Date: 23 May 2001 14:06:42 +0200
- Cc: Andrew Haley <aph at redhat dot com>, Franz dot Sirl-kernel at lauterbach dot com
I just got the following bootstrap failure on powerpc:
./xgcc -B./ -B/usr/powerpc-suse-linux/bin/ -isystem /usr/powerpc-suse-linux/include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include -fPIC -mstrict-align -fexceptions -c ../../gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
../../gcc/unwind-dw2.c: In function `execute_stack_op':
../../gcc/unwind-dw2.c:300: warning: `result' might be used uninitialized in this function
../../gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../gcc/unwind-dw2.c:897: `__SIGNAL_FRAMESIZE' undeclared (first use in this function)
../../gcc/unwind-dw2.c:897: (Each undeclared identifier is reported only once
../../gcc/unwind-dw2.c:897: for each function it appears in.)
../../gcc/unwind-dw2.c:897: warning: `sc_' might be used uninitialized in this function
make[3]: *** [libgcc/./unwind-dw2.o] Error 1
A grep revealed:
gee:/cvs/gcc-3_0-branch/gcc:[0]$ grep -r __SIGNAL_FRAMESIZE .
./config/rs6000/linux.h: sc_ = (CONTEXT)->cfa + __SIGNAL_FRAMESIZE; \
This got introduced with:
2001-05-17 Andrew Haley <aph@redhat.com>
* config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
The same problem seems to exist in the mainline.
I could find it only in the Linux kernel header
include/asm-ppc/ptrace.h with an #ifdef __KERNEL:
#ifdef __KERNEL__
#define STACK_FRAME_OVERHEAD 16 /* size of minimum stack frame */
/* Size of stack frame allocated when calling signal handler. */
#define __SIGNAL_FRAMESIZE 64
Andrew, where should __SIGNAL_FRAMESIZE be defined? The usage of
__SIGNAL_FRAMESIZE looks totally broken to me, it cannot be used in
userland. Could you please fix your patch or clarify what goes wrong?
Thanks,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj