Adriaan van Os wrote:
Waldek Hebisch wrote:
I have put a new gpc snapshot at:
http://www.math.uni.wroc.pl/~hebisch/gpc/gpc-20051116.tar.bz2
Thanks for the snapshot. The testsuite results on powerpc-apple-darwin7 are
<snip>
where prep2p.pas fails with
FAIL: prep2p.pas 0a1,2
_ARCH_PPC _BIG_ENDIAN
1a4
__BIG_ENDIAN__
failed
prep2p tests if Pascal has the same predefined symbols as C. Unfortunatly, PPC backend exports puts some predefines in C only files. We can try to link in needed files, but then we risk problems in future versions on on other targets. So ATM prep2p is expected to fail on PPC.
Also, there is no gpcpp executable anymore (use gpc -E as preprocessor).
It appears that an old (http://www.gnu-pascal.de/crystal/gpc/en/mail11093.html) or similar problem has reappeared, but this thime with gp
<snip>
This seems to be caused by the -E flag
[G5:gpc/testgpc/adriaan] adriaan% gpc --gnu-pascal -O1 -Wuninitialized hello.pas -E gpc1: warning: -Wuninitialized is not supported without -O
The patch below should fix this (I forgot to pass -O when using -E)
--- gpc/p/lang-specs.h.bb 2005-11-17 01:19:05.394171816 +0100 +++ gpc-20051116/p/lang-specs.h 2005-11-17 01:31:32.740557896 +0100 @@ -62,11 +62,11 @@ %{!fsyntax-only:%(invoke_as)} }}}", 0}, #endif "gpc1 %{E:-E %{!M:%(cpp_unique_options) %1 %{m*} %{f*&W*&pedantic*} %{w} " - "%(cpp_debug_options)}}" + "%(cpp_debug_options) %{O*}}}" "%{M:%(cpp_unique_options) %1 %{m*} %{f*&W*&pedantic*} %{w}" - "%(cpp_debug_options)}" + "%(cpp_debug_options) %{O*}}" "%{!E:%{!M:%{save-temps:-E %(cpp_unique_options) %1 %{m*} " - "%{f*&W*&pedantic*} %{w} -o %b.i \n\ + "%{f*&W*&pedantic*} %{w} %{O*} -o %b.i \n\ gpc1 -fpreprocessed %b.i} %{!save-temps:%(cpp_unique_options)} \ %(cc1_options)\ %{!famtmpfile*:%eInternal GPC problem: internal option `--amtmpfile' not given}\