This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 3.0: Bootstrap failure with current sources on powerpc-linux
Andrew Haley <aph@cambridge.redhat.com> writes:
> 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.
It doesn't look like it was defined in any released glibc version this
way - but that's beyond the point, we need to fix it.
> 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.
I think Geoff fixed it already.
Thanks,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj