This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Trouble building egcs-970922 in i686-linux


Hi-

I've come across the following error while compiling.  I ran
1997-09-17/gcc/cc1 in gdb and found the problem occurred in
"jmp_uses_reg_or_mem".  Here's a dump from my gdb session.  First I
ran:
    ./xgcc -save-temps -v -B./ -O2   -DIN_GCC   -DUSE_GNULIBC_1 -g -I./include  -fPIC -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I./config -c -DL_bb ./libgcc2.c -o _bb.o

to create the temporary files:

    (gdb) r libgcc2.i -v -dumpbase libgcc2.c -g -g1 -O2 -version -fPIC -o libgcc2.s
    The program being debugged has been started already.
    Start it from the beginning? (y or n) y
    Starting program: /usr/src/egcs/egcs-970922/gcc/cc1 libgcc2.i -v -dumpbase libgcc2.c -g -g1 -O2 -version -fPIC -o libgcc2.s
    warning: Unable to find dynamic linker breakpoint function.
    warning: GDB will be unable to debug shared library initializers
    warning: and track explicitly loaded dynamic code.
    Cannot insert breakpoint 1:
    Temporarily disabling shared library breakpoints:
    1 
    cc1: Invalid option `-v'
    GNU C version egcs-2.90.09 970922 (gcc2-970802 experimental) (i686-pc-linux-gnulibc1) compiled by GNU C version 2.7.2.1.
    options passed:  -v -g -g1 -O2 -fPIC
    options enabled:  -fdefer-pop -fcse-follow-jumps -fcse-skip-blocks
     -fexpensive-optimizations -fthread-jumps -fstrength-reduce -fpeephole
     -fforce-mem -ffunction-cse -finline -fkeep-static-consts -fcaller-saves
     -fpcc-struct-return -frerun-cse-after-loop -fschedule-insns2 -fPIC
     -fexceptions -fcommon -fverbose-asm -fgnu-linker -fregmove -falias-check
     -fargument-alias -m80387 -mhard-float -mno-soft-float -mieee-fp
     -mfp-ret-in-387 -mcpu=pentiumpro -march=pentium
     __store_long __fetch_long __write_long __read_long num_digits __bb_exit_func __bb_init_func __stat stat __lstat lstat __fstat fstat __mknod mknod gopen gclose __bb_exit_trace_func
    Program received signal SIGSEGV, Segmentation fault.
    0x80d6a63 in jmp_uses_reg_or_mem (x=0x2000003a) at rtlanal.c:1863
    (gdb) where
    #0  0x80d6a63 in jmp_uses_reg_or_mem (x=0x2000003a) at rtlanal.c:1863
    #1  0x80d6d73 in computed_jump_p (insn=0x827e1b0) at rtlanal.c:1934
    #2  0x8133865 in indirect_jump_in_function_p (start=0x8274254) at loop.c:7583
    #3  0x8127b20 in loop_optimize (f=0x8274254, dumpfile=0x0) at loop.c:508
    #4  0x8070217 in rest_of_compilation (decl=0x8273b74) at toplev.c:3238
    #5  0x805c50e in finish_function (nested=0) at c-decl.c:7047
    #6  0x8049f13 in yyparse () at c-parse.y:316
    #7  0x806ed58 in compile_file (name=0xbffff6bd "libgcc2.i") at toplev.c:2486
    #8  0x80721f5 in main (argc=12, argv=0xbffff4f4, envp=0xbffff528)
        at toplev.c:4331
    #9  0x804904b in _start ()
    (gdb) 


Here's the initial failure which occured while running make:

  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}; \
    /usr/src/egcs/egcs-970922/gcc/xgcc -B/usr/src/egcs/egcs-970922/gcc/ -O2   -DIN_GCC   -DUSE_GNULIBC_1 -g -I./include  -fPIC -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I./config -c -DL${name} \
        ./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
  _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
  xgcc: Internal compiler error: program cc1 got fatal signal 11
  gmake[1]: *** [libgcc2.a] Error 1
  gmake[1]: Leaving directory `/usr/src/egcs/egcs-970922/gcc'
  make: *** [all-gcc] Error 2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]