An update:
I got it working, tests compile with 0 failures! (See report output at the end).
I have one question (this is probably for Frank): When gpc is built the gcc backend gets rebuilt. make install (with configure --enable-languages=pascal) will then overwrite few binaries libs and headers from old gcc installation. This I consider undesirable (especially since my understanding is that these binaries and libraries are essentially the same as in native gcc). I went around by deleting newly built files so that nothing gets overwritten. The test results I report are after such install, so it looks like it does work this way. However I would like to know if there are any issues which might come up later.
One clarification is probably necessary: gentoo is a source-based distribution. When gpc is installed it is compiled against existing system following the procedure in install instructions. Thus the result is pretty consistent on every install and the described trick will work if there are no hidden dependencies which are not catched by the test-suite.
This is the list of relevant files which were kept under /usr/bin and /usr/lib: /usr/bin: gpc, gpc-run /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/: gpc1, gpcpp, SYSCALLS.c.X, libgpc.a; units/* include/gpc-in-c.h (and of course docs, share, info, man etc were preserved)
everything else is deleted at install, so that existing gcc is not touched. Did I forget anything? Should this list be changed somehow? Thanks.
George
Testing GPC 20020402, based on gcc-2.95.3 20010315 (release) (i686-pc-linux-gnu) (groug.home.net) echo "gpc -g -O3 -Wall " gpc -g -O3 -Wall PC="gpc" PFLAGS="--autobuild -g -O3 -Wall " SRCDIR="." "./test_run" "*.pas" | "./test_sum" TEST fjf480a.pas: SKIPPED: librx not installed TEST fjf480b.pas: SKIPPED: librx not installed TEST fjf480c.pas: SKIPPED: librx not installed TEST regextest.pas: SKIPPED: librx not installed
# of GPC tests 2635 # of GPC tests passed 2631 # of GPC tests skipped 4 # of GPC tests failed 0
real 11m41.476s user 8m28.410s sys 2m6.780s
Great job!