This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Java ICEs in reload on PowerPC with -fPIC
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Java ICEs in reload on PowerPC with -fPIC
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Sat, 03 Nov 2001 15:20:39 +1300
Many files in libjava give the following error on PowerPC with -fPIC,
but only when compiled *without* optimization. There is no error when -O
or -O2 is used.
$ gcj -c java/util/Calendar.java
$ gcj -c java/util/Calendar.java -fPIC -O
$ gcj -c java/util/Calendar.java -fPIC
java/util/Calendar.java: In class `java.util.Calendar':
java/util/Calendar.java: In method
`java.util.Calendar.getInstance(java.util.TimeZone,java.util.Locale)':
java/util/Calendar.java:445: Internal compiler error in
fixup_abnormal_edges, at reload1.c:9485
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
(gdb) list
9480 while ((GET_CODE (insn) == INSN || GET_CODE (insn) ==
NOTE)
9481 && !can_throw_internal (insn)
9482 && insn != bb->head)
9483 insn = PREV_INSN (insn);
9484 if (GET_CODE (insn) != CALL_INSN &&
!can_throw_internal (insn))
9485 abort ();
9486 bb->end = insn;
9487 inserted = true;
9488 insn = NEXT_INSN (insn);
9489 while (insn && insn != stop)
(gdb) p debug_rtx (insn)
(code_label 39 566 437 25 "" "" [1 uses])
$4 = void
(gdb) p can_throw_internal (insn)
$5 = false
regards
Bryce.