Hello!
According to Gary Narayanan USG:
The compiler (I think is gcc 2.7.2.1 compiles this and not /usr/bin/cc) could not compile the file "gpc-decl.c" . The error was in line 2962
TREE_CODE (TREE_VALUE (tail)) = code; The compile said it was not an l-value.
I worked around by eliminating the conditional, and typing return NULL_TREE; for both cases. Will this break the compiler functionality?
Yes.
It must have been `/usr/bin/cc' since gcc-2.7.2.1 is known to accept this. The problem comes from the `TREE_CODE' macro being a type cast which is not accepted by all C compilers as an lvalue.
To work around, replace the line by
(TREE_VALUE (tail))->common.code = code;
The file "gpc-module.c" has several '#define' statements and not starting at first character of the line. The link editor failed because of this, eg
ld: unreolved STORE_SPECIAL
Fixed. Thanks.
- The rts/Makefile generated needed some editiong, ie adding a "../" for the gcc path name.
Here I am not sure. Maybe this comes from some VPath problem? Anyway, more recent versions of GPC have an automatically generated `rts/Makefile' which hopefully does not cause this problem.
Greetings,
Peter -- Peter Gerwinski, Essen, Germany, free physicist and programmer Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - 1 Oct 1997 PGP key fingerprint: AC 6C 94 45 BE 28 A4 96 0E CC E9 12 47 25 82 75 Fight the SPAM! - http://maps.vix.com/