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
[G5:gcc/p/test] adriaan% make rm -f *.dat *.o *.s *.i *.gpi *.gpd *.gpc core a.out stderr.out *.exe testmake.tmp dummy.c dummy.pas dummy.out diff_cr*.tmp fixcr fixcr.exe rm -f todo/a.out todo/*.exe todo/*.o todo/*.s todo/*.i todo/*.gpi todo/*.gpd todo/core GP= PC="gpc" PFLAGS=" --autobuild -g -O3 -W -Wall -Wno-unused " PFLAGS_NO_PATHS="-g -O3 -W -Wall -Wno-unused " SRCDIR="." TEST_MAKE_FLAG=test-make-flag "./test_run" "*.pas" | tee test_log | "./test_sum" -d Test Run By adriaan on 2005-11-16 14:06:00 Native configuration is powerpc-apple-darwin7 (G5.local)
=== gpc tests ===
Running target any Running testsuite ...
UNSUPPORTED: agettext2test.pas UNSUPPORTED: agettexttest.pas UNSUPPORTED: aregextest.pas UNSUPPORTED: asmtest.pas UNSUPPORTED: fjf165a.pas FAIL: fjf998r.pas UNSUPPORTED: gmptest.pas UNSUPPORTED: longr2.pas FAIL: prep2p.pas FAIL: systemtest.pas
=== gpc Summary ===
# of tests 4969 # of expected passes 4959 # of unexpected failures 3 # of unsupported tests 7
gpc version 20051116, based on gcc-3.4.4
where prep2p.pas fails with
FAIL: prep2p.pas 0a1,2
_ARCH_PPC _BIG_ENDIAN
1a4
__BIG_ENDIAN__
failed
This snapshot has integrated preprocessor. This should solve problems with (lack of) predefined symbols when using 3.3.x and 3.4.x backends.
I can confirm that it does, which is quite useful when working e.g. with cross-compilers.
The preprocessor is just integrated -- inside it is the same preprocessor as before. There is new `--preprocessed' option, but the change is intended to be as compatible as possible. Still, the code to handle command line changed, so there may be some unintended change. 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
[G5:gpc/testgpc/adriaan] adriaan% gpc --gnu-pascal -O1 -Wuninitialized hello.pas
[G5:gpc/testgpc/adriaan] adriaan% gp --gnu-pascal -O1 -Wuninitialized hello.pas gpc1: warning: -Wuninitialized is not supported without -O
[G5:gpc/testgpc/adriaan] adriaan% gp --gnu-pascal -O1 -Wuninitialized hello.pas -v gpc -dumpmachine gpc -dumpversion gpc -print-file-name=units gpc --print-needed-options -x Preprocessed-Pascal /var/tmp/GPaaa17630 /Users/adriaan/gnu/gpc/testgpc/adriaan/hello.pas: recompiling because of compiler version mismatch gpc --gnu-pascal -O1 -Wuninitialized -I /Users/adriaan/gnu/gpc/testgpc/adriaan/ -I /Users/adriaan/gnu/gpc/testgpc/adriaan/ -I . -I /Developer/Pascal/gpc344d6/lib/gcc/powerpc-apple-darwin7/3.4.4/units -I /Users/adriaan/gnu/gpc/testgpc/adriaan/ --unit-path=/Users/adriaan/gnu/gpc/testgpc/adriaan/ -E -H /Users/adriaan/gnu/gpc/testgpc/adriaan/hello.pas gpc1: warning: -Wuninitialized is not supported without -O
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 # 1 "hello.pas"
program Hello (Output);
begin WriteLn ('Hello, world.') end.
- `--longjmp-all-nonlocal-labels' is on by default on Darwin/PPC
Thanks,
Adriaan van Os