Peter N Lewis wrote:
At 6:56 AM +0200 12/8/03, Adriaan van Os wrote:
Error : Internal compiler error. GPCMacOSAll.pas line 160048
Perhaps the solution to this problem would be for each ICE to either print a stack backtrace, or if that isn't possible, for each ICE to display the source file and line number in GPC that generates this? At least then Frank would be able to figure out where to look?
For errors that the compiler itself recognizes (via `assert' or `abort'), it does so:
: Error : internal compiler error: in extract_insn, at recog.c:2175 : warnings.pas line 59
For real crashes (segfault, bus error etc.) that's not easily possible. The best thing is to look at the core file in a debugger. Unfortunately, gcc-3 suppresses coredumps. The following patch will change this (and the ulimit for the coredumpsize must be set > 0 in the shell).
--- gcc/toplev.c.orig Sat Nov 9 09:59:15 2002 +++ gcc/toplev.c Tue Nov 26 16:35:32 2002 @@ -1712,6 +1712,10 @@ crash_signal (signo) int signo; { + /* But less programmer friendly because coredumps are missing. -- Frank */ + error ("internal error: %s", strsignal (signo)); + raise (signo); + internal_error ("internal error: %s", strsignal (signo)); }
Frank