Waldek Hebisch wrote:
I am trying to make gpc work with gpc 3.1.1.
Great! :-)
Currently gpc1 compiles and links (I omitted gcpp, runtime and the 'gpc' driver).
These should be mostly harmless -- I suppose minor changes to gpc and gpcpp and maybe none at all to the runtime system.
About 80% of testsuite works, but the remaining bugs still make compiler unuseable: -- gcp1 crashes trying to use gpc unit -- sometimes arrays and records are mislayed -- record layout functions complain about function declarations in objects. Of course, a bunch of minor bugs also shows up.
I have a few questions about getting my work into mainline: -- is there anybody working on the same thing (the disscusion few months ago suggested that nobody)?
AFAIK, nobody.
-- should I try to resolve remaning bugs before I submit a patch?
As you like. If you submit it now, maybe someone else will work with you on the remaining problems (though I slightly doubt it ...). Surely, it can't hurt to submit the patch, and I can put it on alpha/ on the website.
-- is gpc supposed to compile with other C compilers or only with gcc?
Theoretically yes, but I don't think the current version (2.1) does because AFAIK nobody has tried it for a long time. -- Actually, someone tried last year and reported a few small problems, but before I got around to fixing them, they'd built it with GCC. So I expect there are a few more problems, but mostly minor ones.
However, this should be quite independent of the gcc-3 port. If you have access to another C compiler and want to test it, be welcome to submit patches (or bug reports) as well.
Frank