Waldek Hebisch wrote:
I have put a new gpc snapshot at:
Next, I will try with gcc-4.
The compiler does build on powerpc-apple-darwin8 with gcc-4.0.3 (I bootstrapped an FSF-gcc-4.0.3 C compiler first). Next I tried the testsuite.
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="gpc403d1" 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 2006-03-25 18:00:51 Native configuration is powerpc-apple-darwin8 (g5.local)
=== gpc tests ===
Running target any Running testsuite ...
UNSUPPORTED: agettext2test.pas UNSUPPORTED: agettexttest.pas UNSUPPORTED: aregextest.pas UNSUPPORTED: asmtest.pas FAIL: aturbo3test.pas gpc403d1: Internal error: Cputime limit exceeded (program gpc1) Please submit a full bug report. See URL:http://www.gnu-pascal.de/todo.html for instructions. gpc1: gpc403d1 exited with status 1 gpc1: gpc403d1 exited with status 1 failed
Looks like the compiler hangs in an endless loop. I took a sample with the Mac OS X activity monitor.
Analysis of sampling pid 2816 every 10.000000 milliseconds Call graph: 289 Thread_100f 289 start 289 _start 289 toplev_main 289 yyparse 289 cgraph_optimize 289 cgraph_expand_function 289 tree_rest_of_compilation 289 execute_pass_list 289 rest_of_compilation 289 dbxout_function_decl 289 dbxout_block 289 dbxout_block 289 dbxout_syms 289 dbxout_symbol 289 dbxout_symbol
Total number in stack (recursive counted multiple, when >=5):
Sort by top of stack, same collapsed (when >= 5): dbxout_symbol 289 Sample analysis of process 2816 written to file /dev/stdout Sampling process 2816 each 10 msecs 300 times
The same happened with another test program (but I didn't come very far yet). Adding -O2, -O1 or -O0 doesn't help. Same for -mdynamic-no- pic and --no-pic.
Interestingly, asmnames.pas now passes.
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="gpc403d1" 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" asmnames.pas | tee test_log | "./test_sum" -d Test Run By adriaan on 2006-03-25 19:19:31 Native configuration is powerpc-apple-darwin8 (g5.local)
=== gpc tests ===
Running target any Running testsuite ...
=== gpc Summary ===
# of tests 1 # of expected passes 1
gpc403d1 version 20060325, based on gcc-4.0.3
Regards,
Adriaan van Os