Frank Heckenbach wrote:
The read tests are quite heavy on stack usage. If you can increase the system limit (ulimit etc.), you might want try that. But I'm changing them now to reduce stack usage, so in the next GPC version, they might work (unless it's actually another bug).
It's an interesting option to add -fstack-check to the test suite:
[G4:~/gnu/testgpc/test] adriaan% make MASK=readg1.pas EXTRA_PFLAGS=-fstack-check
Running the GPC Test Suite. This may take a while ...
rm -f *.dat *.o *.s *.gpm *.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/*.gpm todo/*.gpi todo/*.gpd todo/core { gpc --version | head -1; gpc --print-search-dirs | grep install | head -1; hostname || echo "unknown host"; } | \ sed -e 's,^,Testing ,;N;s,\n.*gcc-lib[/], (,;s,[/].*,),;N;s,\n, (,;s,$,),' Testing gpc 20021128, based on gcc-3.2.1 (powerpc-apple-darwin6.3) (G4.local.) echo "gpc -g -O3 -W -Wall -Wundef -Wpointer-arith -Wno-unused -fstack-check " gpc -g -O3 -W -Wall -Wundef -Wpointer-arith -Wno-unused -fstack-check PC="gpc" PFLAGS="--autobuild -g -O3 -W -Wall -Wundef -Wpointer-arith -Wno-unused -fstack-check " SRCDIR="." TEST_MAKE_FLAG=test-make-flag "./test_run" "readg1.pas" | "./test_sum" TEST readg1.pas: gpc1: warnings being treated as errors ./read2.inc: In procedure `R': In file included from ./readg1.pas:9: ./read2.inc:203: warning: frame size too large for reliable stack checking ./read2.inc:203: warning: try reducing the number of local variables failed awk: null file name in print or getline input record number 11, file source line number 14 make: *** [pascal.check-nomsg] Error 2