This is the mail archive of the gcc-bugs@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]

19991025 ICE at insn-output.c:412 compiling gcc/libgcc2.c(_divdi3) on mips-sgi-irix6.5


When building 19991025 with --enable-checking I get

	ICE at insn-output.c:412 compiling gcc/libgcc2.c(_divdi3)


  ./xgcc -B/exd4/billingd/tmp/egcs-19991025/mips-sgi-irix6.5/bin/ -B./
-I/exd4/billingd/tmp/egcs-19991025/mips-sgi-irix6.5/include -O2   -DIN_GCC
-g -W -Wall -I./include   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I.
-I/exd4/billingd/src/egcs-19991025/gcc
-I/exd4/billingd/src/egcs-19991025/gcc/config
-I/exd4/billingd/src/egcs-19991025/gcc/../include -c -DL${name} \
       /exd4/billingd/src/egcs-19991025/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
_muldi3
_divdi3
/exd4/billingd/src/egcs-19991025/gcc/libgcc2.c: In function `__divdi3':
/exd4/billingd/src/egcs-19991025/gcc/libgcc2.c:694: RTL check: expected code
`reg', have `const_int'
/exd4/billingd/src/egcs-19991025/gcc/libgcc2.c:694: Internal compiler error
in `output_97', at insn-output.c:412
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for
instructions.
make[4]: *** [libgcc2.a] Error 1
make[4]: Leaving directory
`/exd4/billingd/obj/egcs-19991025-enable-checking/gcc'


 ./cc1 libgcc2.i -quiet -dumpbase libgcc2.c -g -g1 -O2 -W -Wall -version -o
libgcc2.s
GNU C version 2.96 19991025 (experimental) (mips-sgi-irix6.5) compiled by
GNU C version 2.95.1 19990816 (release).
/exd4/billingd/src/egcs-19991025/gcc/libgcc2.c: In function `__divdi3':
/exd4/billingd/src/egcs-19991025/gcc/libgcc2.c:694: RTL check: expected code
`reg', have `const_int'
/exd4/billingd/src/egcs-19991025/gcc/libgcc2.c:694: Internal compiler error
in `output_97', at insn-output.c:412
Please submit a full bug report.


.gdbinit:8: Error in sourced command file:
/exd4/billingd/src/egcs-19991025/gcc/.gdbinit:91: Error in sourced command
file:
Function "exit" not defined.
Breakpoint 1 at 0x107210b0: file insn-output.c, line 412.
GNU C version 2.96 19991025 (experimental) (mips-sgi-irix6.5) compiled by
GNU C version 2.95.1 19990816 (release).

Breakpoint 1, output_97 (operands=0x108d1e80, insn=0x40fb000)
    at insn-output.c:412
412             && REGNO (operands[1]) == 0)
#0  output_97 (operands=0x108d1e80, insn=0x40fb000) at insn-output.c:412
#1  0x10616c38 in get_insn_template (code=97, insn=0x40fb000)
    at /exd4/billingd/src/egcs-19991025/gcc/final.c:2053
#2  0x1061dfa8 in final_scan_insn (insn=0x40fb000, file=0xfb563d8,
optimize=2, 
    prescan=0, nopeepholes=0)
    at /exd4/billingd/src/egcs-19991025/gcc/final.c:2919
#3  0x10616aa0 in final (first=0x40f8380, file=0xfb563d8, optimize=2, 
    prescan=0) at /exd4/billingd/src/egcs-19991025/gcc/final.c:2027
#4  0x1002c1e0 in rest_of_compilation (decl=0x4030180)
    at /exd4/billingd/src/egcs-19991025/gcc/toplev.c:4375
#5  0x1080e3d8 in finish_function (nested=0)
    at /exd4/billingd/src/egcs-19991025/gcc/c-decl.c:6715
#6  0x107e07f4 in yyparse () at c-parse.y:314
#7  0x10027f10 in compile_file (name=0x4042d00 "")
    at /exd4/billingd/src/egcs-19991025/gcc/toplev.c:3200
#8  0x1002efe0 in main (argc=13, argv=0x7fff2f04)
    at /exd4/billingd/src/egcs-19991025/gcc/toplev.c:5555
407       for (link = LOG_LINKS (insn); link; link = XEXP (link, 1))
408     
409         if ((int) REG_DEP_ANTI == (int) REG_NOTE_KIND (link)
410             && GET_CODE (XEXP (link, 0)) == INSN
411             && GET_CODE (PATTERN (XEXP (link, 0))) == TRAP_IF
412             && REGNO (operands[1]) == 0)
413           have_dep_anti = 1;
414       if (! have_dep_anti)
415         {
416           if (GENERATE_BRANCHLIKELY)
(gdb) print *link
$1 = {code = INSN_LIST, mode = SFmode, jump = 0, call = 0, unchanging = 0, 
  volatil = 0, in_struct = 0, used = 0, integrated = 0, frame_related = 0, 
  fld = {{rtwint = 68136864, rtint = 68136864, rtstr = 0x40fafa0 "", 
      rtx = 0x40fafa0, rtvec = 0x40fafa0, rttype = 68136864, 
      rt_addr_diff_vec_flags = {min_align = 4, base_after_vec = 0, 
        min_after_vec = 0, max_after_vec = 0, min_after_base = 0, 
        max_after_base = 1, offset_unsigned = 1, scale = 175}, 
      rtbit = 0x40fafa0, rttree = 0x40fafa0, bb = 0x40fafa0}}}
(gdb) quit


Previously reported as
http://egcs.cygnus.com/ml/gcc-bugs/1999-10/msg00405.html

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