For me, this looks like an internal error in the backend. This makes it hard to debug ... :-(
Maybe the error is related to egcs-1.1.2? Did you try gcc-2.8.x? (There will also be gcc-2.95, soon.)
Well, I have been able to build and run egcs-1.1.2 without gpc with no problems, so if it were a backend problem it should have to do with gpc at least partly (or the way gpc uses the backend).
Debugging gpc1 while it issues these error messages is possible, but some work. `cd' to the `.../p/rts/' directory, run `gdb ../../gpc1', type `set args -fautomake files.pas' (plus maybe other necessary options to `gpc1' that appear in the Makefile). Then `run' the compiler. When the error occurs, type `info stack' and show us the result. After that we will see ... :-]
I just tried that and got this:
(gdb) run Starting program: /ece2/eeof/gcc/gcc/gpc1 -fautomake files.pas [New process 13605] Detaching after fork from process 13605 gpc1: installation problem, cannot exec `gpc': No such file or directory gpc1: gpc exited with status 255 [New process 13606] Detaching after fork from process 13606 gpc1: installation problem, cannot exec `gpc': No such file or directory gpc1: gpc exited with status 255 Assign Internal_assign Assign_cfile Ioselect files.pas: In function `Ioselect': files.pas:162: internal error--unrecognizable insn: (insn 353 352 355 (set (zero_extract:SI (reg:SI 241) (const_int 32) (const_int 0)) (reg:SI 242)) -1 (nil) (nil)) ../../../egcs-1.1.2/gcc/p/../toplev.c:1385: Internal compiler error in function fatal_insn
Program exited with code 041. (gdb) info stack No stack.
---------
I also tried loading xgpc int gdb (which is the executable called in the Makefile -and I guess it calls gpc1?):
Starting program: /ece2/eeof/gcc/gcc/xgpc -fautomake files.pas [New process 13613] Detaching after fork from process 13613 [New process 13614] Detaching after fork from process 13614 files.pas: In function `Ioselect': files.pas:162: internal error--unrecognizable insn: (insn 353 352 355 (set (zero_extract:SI (reg:SI 241) (const_int 32) (const_int 0)) (reg:SI 242)) -1 (nil) (nil)) ../../../egcs-1.1.2/gcc/p/../toplev.c:1385: Internal compiler error in function fatal_insn
Program exited with code 01. (gdb) info stack No stack.
Is there something I should have setup before I do the 'info stack'? I am not familiar with debugging.
Thanks again,
Dimitrios.
PS. Should I stop cc-ing to the list?