George Shapovalov wrote:
I got it working, tests compile with 0 failures! (See report output at the end).
Good.
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.
Do `make pascal.install' then. (Currently, it will still overwrite libgcc.a, but I've just changed this for the next release, according to a request by the Chief.) But note that it will only work seamlessly if the installed GCC version is the same (in particular, uses the same directory below gcc-lib), i.e. exactly in the case where `make install' would overwrite its files.
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)
SYSCALLS.c.X should not be necessary, and I don't think there's anything GPC related in share. Otherwise, the list looks correct.
Frank