Waldek Hebisch a écrit:
I have put a new gpc snapshot at:
http://www.math.uni.wroc.pl/~hebisch/gpc-20060325.tar.bz2
Main change is preliminary gcc-4.0.x support. The other changes are rather small. Note that for "production use" 3.4.x and 3.3.x backend are prefered. Also, using 2.8.1, 2.95.3 and 3.2.3 backend should work, but is depreciated.
No problem to compile for DJGPP and gcc-4.0.2 using the file gcc402s.zip (source files patched for DJGPP) found on the Andris Pavenis Web site
http://ap1.pp.fi/djgpp/gcc/4.0.2/gcc402s.zip
and the usual procedure.
Running the test suite in the build.gcc/gcc dir with
make pascal.check EXTRA_TEST_PFLAGS=-gstabs
gives
---------------------------------------------------------------------------------
GP= PC="c:/djgpp/gnu/build.gcc/gcc/xgpc -Bc:/djgpp/gnu/build.gcc/gcc/" PFLAGS="- I ../rts --no-unit-path --unit-path=c:/djgpp/gnu/gcc-4.02/gcc/p/units --autobuil d -g -O3 -W -Wall -Wno-unused -gstabs" PFLAGS_NO_PATHS="-g -O3 -W -Wall -Wno- unused -gstabs" SRCDIR="c:/djgpp/gnu/gcc-4.02/gcc/p/test" TEST_MAKE_FLAG=test-m ake-flag "c:/djgpp/gnu/gcc-4.02/gcc/p/test/test_run" | tee test_log | "c:/djgp p/gnu/gcc-4.02/gcc/p/test/test_sum" -d Test Run By dosuser on 2006-03-27 18:59:00 Native configuration is djgpp (KNAUTIE)
=== gpc tests ===
Running target any Running testsuite ...
UNSUPPORTED: fjf165a.pas FAIL: fjf186.pas FAIL: fjf322.pas FAIL: fjf403b.pas FAIL: fjf587b.pas FAIL: fjf779a.pas FAIL: fjf779b.pas FAIL: fjf779e.pas FAIL: fjf779f.pas FAIL: fjf779g.pas FAIL: goto8.pas UNSUPPORTED: longr2.pas FAIL: nicola4c.pas
=== gpc Summary ===
# of tests 5070 # of expected passes 5057 # of unexpected failures 11 # of unsupported tests 2
c:/djgpp/gnu/build.gcc/gcc/xgpc version 20060325, based on gcc-4.0.2
--------------------------------------------------------------------------
more found in gpc.log
--------------------------------------------------------------------------
FAIL: fjf186.pas Exiting due to signal SIGSEGV General Protection Fault at eip=00003b0a eax=74736574 ebx=74736574 ecx=00049856 edx=00000001 esi=00000001 edi=00053f9c ebp=000d3ef8 esp=000d3ef0 program=C:\DJGPP\GNU\BUILD.GCC\GCC\P\TEST\A.OUT cs: sel=0217 base=84a25000 limit=000effff ds: sel=021f base=84a25000 limit=000effff es: sel=021f base=84a25000 limit=000effff fs: sel=01f7 base=00042950 limit=0000ffff gs: sel=022f base=00000000 limit=0010ffff ss: sel=021f base=84a25000 limit=000effff App stack: [000d3f9c..00053f9c] Exceptn stack: [000531c4..00051284]
Call frame traceback EIPs: 0x00003b0a 0x00003b5f 0x00002105 0x0000229d 0x0002f878
FAIL: fjf322.pas c:/djgpp/gnu/gcc-4.02/gcc/p/test/fjf322.pas: In function `o': gpc1.exe: warnings being treated as errors c:/djgpp/gnu/gcc-4.02/gcc/p/test/fjf322.pas:8: warning: 'result_0 .length ' is used uninitialized in this function failed
FAIL: fjf403b.pas failed: failed
FAIL: fjf587b.pas c:/djgpp/gnu/gcc-4.02/gcc/p/test/fjf587b.pas: In procedure `Foo': gpc1.exe: warnings being treated as errors c:/djgpp/gnu/gcc-4.02/gcc/p/test/fjf587b.pas:5: warning: 'concat_0 ._p_Schema_[3]{lb: 1 sz: 1} ' is used uninitialized in this function failed
FAIL: fjf779a.pas failed:
FAIL: fjf779b.pas failed:
FAIL: fjf779e.pas failed:
FAIL: fjf779f.pas failed:
FAIL: fjf779g.pas failed:
FAIL: goto8.pas c:/djgpp/gnu/gcc-4.02/gcc/p/test/goto8.pas: In main program: gpc1.exe: warnings being treated as errors c:/djgpp/gnu/gcc-4.02/gcc/p/test/goto8.pas:10: warning: 'C.155422' may be used uninitialized in this function c:/djgpp/gnu/gcc-4.02/gcc/p/test/goto8.pas:9: warning: 'saved_stack.155436' may be used uninitialized in this function c:/djgpp/gnu/gcc-4.02/gcc/p/test/goto8.pas:10: warning: 'nonconstant_expr_1' may be used uninitialized in this function failed
FAIL: nicola4c.pas failed:
---------------------------------------------------------------------------------- Maurice