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]

egcs-970229 fails on Linux-GNUlibc-2.1


Dear egcs gurus, 

in contrast to egcs-970917, which works like a charm on my Linux box
(GNU-libc-2.1-970921), compilation of egcs-970921 failed for me. First
of all, a diff to gcc/reg-stack.c seemed to be too aggressive, with
"x" and "pat" being left undeclared afterwards (a diff reversing this
is included below), but secondly, compilations comes to a halt with
the following message:

Internal compiler error: program cc1 got fatal signal 11

(I'm including a longer stretch of the output and a gdb output
below). EGCS-GCC-970917 compiles _bb without a flaw, -970922 succeeds
to compile it if and only if the optimization flag -O2 is omitted.

Sorry, I'm not able to find the cause for this latter problem... To be
on the safe side, I'll fetch the full package later and try and
recompile it (but I haven't seen any *rej files after applying the
patch...).


Best regards,

Ernst



Error during "make LANGUAGES=C" in .../gcc:
--- snip, snip ---
mv -f cplib2.new cplib2.txt 
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    -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
make: *** [libgcc2.a] Error 1
--- snip, snip ---

gdb cc1 core resulted in:
--- snip, snip ---
gdb cc1 core
GNU gdb 970309
Copyright 1996 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Core was generated by `./cc1 /tmp/cca07697.i -quiet -dumpbase libgcc2.c -g -g1 -O2 -fPIC -o /tmp/cca07'.
Program terminated with signal 11, Segmentation fault.
find_solib: Can't read pathname for load map: I/O error

#0  0x80df63d in jmp_uses_reg_or_mem (x=0x2000003a) at rtlanal.c:1863
1863      enum rtx_code code = GET_CODE (x);
Breakpoint 1 at 0x8048f20
(gdb) print x
$1 = 0x2000003a
(gdb) print code
$2 = IF_THEN_ELSE
--- snip, snip ---


now the diff for 
--- snip, snip ---
RCS file: reg-stack.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -c -r1.1 -r1.2
*** reg-stack.c 1997/09/23 06:55:30     1.1
--- reg-stack.c 1997/09/23 08:20:14     1.2
***************
*** 1350,1356 ****
        insn = block_end[block];
  
        if (GET_CODE (insn) == JUMP_INSN)
!       {
  
          if (computed_jump_p (insn))
            {
--- 1350,1358 ----
        insn = block_end[block];
  
        if (GET_CODE (insn) == JUMP_INSN)
!         {
!           rtx pat = PATTERN (insn);
!           rtx x;
  
          if (computed_jump_p (insn))
            {
--- snip, snip ---





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