Adriaan van Os wrote:
On Mac OS X, stabs debugging info is the default, but out of curiosity I tried the other formats:
-gdwarf-2 dummy.pas:0: Internal compiler error in default_no_named_section, at varasm.c:5305
[G4:~/gnu/testgpc/test-20030323] adriaan% make EXTRA_TEST_PFLAGS=-gdwarf-2
Running the GPC Test Suite. This may take a while ...
Testing gpc 20030323, based on gcc-3.2.1 (powerpc-apple-darwin6.3) (G4.local.) echo "gpc -g -O3 -W -Wall -Wundef -Wpointer-arith -Wno-unused -gdwarf-2" gpc -g -O3 -W -Wall -Wundef -Wpointer-arith -Wno-unused -gdwarf-2 PC="gpc" PFLAGS="--autobuild -g -O3 -W -Wall -Wundef -Wpointer-arith -Wno-unused -gdwarf-2" SRCDIR="." TEST_MAKE_FLAG=test-make-flag "./test_run" "*.pas" | "./test_sum" dummy.pas:0: Internal compiler error in default_no_named_section, at varasm.c:5305 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://www.gnu-pascal.de/todo.html for instructions. ./test_run: fatal: cannot compile a simple program Nothing was run.
I'm not sure if dwarf2 is supported at all on this target (does it work in C?), or if I can do anything about it, but maybe you can provide a stack trace (in gdb, set a breakpoint, and when it gets there do `i s').
Frank