[Ada] powerpc, HAVE_save_stack_nonlocal and ada/misc.c

guerby@acm.org guerby@acm.org
Wed Nov 21 13:20:00 GMT 2001


When configuring for a PowerPC target (powerpc-rtems in my case) which
has HAVE_save_stack_nonlocal, the Ada front-end build dies:

gcc -c -DCROSS_COMPILE -DIN_GCC    `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`  -g -O2    -I- -I. -I.. -I../../../gcc/gcc/ada -I../../../gcc/gcc/ada/.. -I../../../gcc/gcc/ada/../config -I../../../gcc/gcc/ada/../../include ../../../gcc/gcc/ada/misc.c
../../../gcc/gcc/ada/misc.c: In function `update_setjmp_buf':
../../../gcc/gcc/ada/misc.c:746: `insn_operand_mode' undeclared (first use in this function)
../../../gcc/gcc/ada/misc.c:746: (Each undeclared identifier is reported only once
../../../gcc/gcc/ada/misc.c:746: for each function it appears in.)
../../../gcc/gcc/ada/misc.c:746: `CODE_FOR_save_stack_nonlocal' undeclared (first use in this function)

<http://gcc.gnu.org/ml/gcc-patches/2001-11/msg00903.html> 

submitted by Graham Stott on 14Nov2001 provides a fix for it, and a
few static/const cleanups (other parts of the patches are already in).

Should I commit this? It looks like a candidate for the "obvious" rule
and gets us from non-build to build land.

-- 
Laurent Guerby <guerby@acm.org>

gcc -c -DCROSS_COMPILE -DIN_GCC    `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`  -g -O2    -I- -I. -I.. -I../../../gcc/gcc/ada -I../../../gcc/gcc/ada/.. -I../../../gcc/gcc/ada/../config -I../../../gcc/gcc/ada/../../include ../../../gcc/gcc/ada/misc.c
../../../gcc/gcc/ada/misc.c: In function `update_setjmp_buf':
../../../gcc/gcc/ada/misc.c:746: `insn_operand_mode' undeclared (first use in this function)
../../../gcc/gcc/ada/misc.c:746: (Each undeclared identifier is reported only once
../../../gcc/gcc/ada/misc.c:746: for each function it appears in.)
../../../gcc/gcc/ada/misc.c:746: `CODE_FOR_save_stack_nonlocal' undeclared (first use in this function)



More information about the Gcc-patches mailing list