GCC 3.0: Bootstrap failure with current sources on powerpc-linux
Andrew Haley
aph@cambridge.redhat.com
Fri May 25 02:32:00 GMT 2001
Andreas Jaeger writes:
>
> I just got the following bootstrap failure on powerpc:
>
> ../../gcc/unwind-dw2.c: In function `uw_frame_state_for':
> ../../gcc/unwind-dw2.c:897: `__SIGNAL_FRAMESIZE' undeclared (first use in this function)
> 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?
It was defined in ptrace.h, and it was available to user programs.
This number is simply the distance in bytes between the saved stack
pointer and the register save area for a signal, and I do not
understand why this information needs to be hidden from a user
program.
However, as this define has been removed it looks like I'll need to
solve this problem in some other way. I'll have a look.
Andrew.
More information about the Gcc-bugs
mailing list