reg-stack.c - a botched patch?
Alexandre Oliva
oliva@dcc.unicamp.br
Mon Sep 22 16:14:00 GMT 1997
Jeffrey A Law writes:
> Yea. Or better stated, untested. I think this should fix your
> problem:
> * reg-stack.c (find_blocks): Fix thinko in last change.
Now I get the following problem (still in stage1):
rm -f tmplibgcc2.a
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3
_ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _op_new _op_vnew _new_handler _op_delete _op_vdel _bb _shtab _clear_cache _trampoline __main _exit _ctors _eh _pure; \
do \
echo ${name}; \
./xgcc -B./ -O2 -DIN_GCC -DUSE_GNULIBC_1 -g -I./include -fPIC -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I/n/temp1/gcctest/bin/../src/egcs-970922/gcc -I/n/temp1/gcctest/bin/../src/egcs-970922/gcc/config -c -DL${name} \
/n/temp1/gcctest/bin/../src/egcs-970922/gcc/libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
[...]
_bb
xgcc: Internal compiler error: program cc1 got fatal signal 11
make[2]: *** [libgcc2.a] Error 1
Here's a stack trace of cc1. Please tell me if I can provide any
additional information.
(gdb) where
#0 0x80eee4b in jmp_uses_reg_or_mem (x=0x2000003a)
at /n/temp1/gcctest/bin/../src/egcs-970922/gcc/rtlanal.c:1863
#1 0x80ef1df in computed_jump_p (insn=0x82d04a0)
at /n/temp1/gcctest/bin/../src/egcs-970922/gcc/rtlanal.c:1934
#2 0x815e109 in indirect_jump_in_function_p (start=0x82c95fc)
at /n/temp1/gcctest/bin/../src/egcs-970922/gcc/loop.c:7583
#3 0x8150610 in loop_optimize (f=0x82c95fc, dumpfile=0x0)
at /n/temp1/gcctest/bin/../src/egcs-970922/gcc/loop.c:508
#4 0x80763ff in rest_of_compilation (decl=0x82c89c0)
at /n/temp1/gcctest/bin/../src/egcs-970922/gcc/toplev.c:3238
#5 0x805f4c6 in finish_function (nested=0)
at /n/temp1/gcctest/bin/../src/egcs-970922/gcc/c-decl.c:7047
#6 0x804a127 in yyparse () at c-parse.y:316
#7 0x8074bf4 in compile_file (name=0xbffff79b "libgcc2.i")
at /n/temp1/gcctest/bin/../src/egcs-970922/gcc/toplev.c:2486
#8 0x80789a1 in main (argc=12, argv=0xbffff62c, envp=0xbffff660)
at /n/temp1/gcctest/bin/../src/egcs-970922/gcc/toplev.c:4331
#9 0x804905b in _start ()
(gdb) p *x
Cannot access memory at address 0x2000003a.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc
mailing list