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: Andreas Jaeger <aj at suse dot de>
- Subject: GCC 3.0: Bootstrap failure with current sources on powerpc-linux
- From: Andrew Haley <aph at cambridge dot redhat dot com>
- Date: Fri, 25 May 2001 10:32:20 +0100 (BST)
- Cc: gcc-bugs at gcc dot gnu dot org, Franz dot Sirl-kernel at lauterbach dot com
- References: <hovgmsgtgt.fsf@gee.suse.de>
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.