Waldek Hebisch wrote:
Adriaan van Os wrote:
FAIL: chief41.pas ./chief41.pas: In function `Str2Charset': ./chief41.pas:6: internal compiler error: in hard_function_value, at explow.c:1541 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://www.gnu-pascal.de/todo.html for instructions. failed
Could you try the following patch (it fixed crash in cross-compiler). Only first hunk should matter on PPC, but other platform probably need the rest (at least AMD64 needs i386.c part). Apply to gcc tree, on top of gpc patch.
Thanks, this fixes the problem. New testsuite results on powerpc- apple-darwin8 (with -gdwarf-2) are given below.
Regards,
Adriaan van Os
[G5:gcc/p/test] adriaan% make EXTRA_PFLAGS=-gdwarf-2 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 - gdwarf-2 " PFLAGS_NO_PATHS="-g -O3 -W -Wall -Wno-unused -gdwarf-2 " SRCDIR="." TEST_MAKE_FLAG=test-make-flag "./test_run" "*.pas" | tee test_log | "./test_sum" -d Test Run By adriaan on 2006-03-28 07:11:15 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: fjf1062a.pas /var/tmp//ccpndmuf.s:71:non-relocatable subtraction expression, "L2" minus "L00000000001$pb" /var/tmp//ccpndmuf.s:71:symbol: "L2" can't be undefined in a subtraction expression /var/tmp//ccpndmuf.s:69:non-relocatable subtraction expression, "L2" minus "L00000000001$pb" /var/tmp//ccpndmuf.s:69:symbol: "L2" can't be undefined in a subtraction expression /var/tmp//ccpndmuf.s:unknown:Undefined local symbol L2 failed
FAIL: fjf1062b.pas /var/tmp//cc0SL794.s:71:non-relocatable subtraction expression, "L2" minus "L00000000001$pb" /var/tmp//cc0SL794.s:71:symbol: "L2" can't be undefined in a subtraction expression /var/tmp//cc0SL794.s:69:non-relocatable subtraction expression, "L2" minus "L00000000001$pb" /var/tmp//cc0SL794.s:69:symbol: "L2" can't be undefined in a subtraction expression /var/tmp//cc0SL794.s:unknown:Undefined local symbol L2 failed
FAIL: fjf1062c.pas /var/tmp//cctBfv1a.s:1162:non-relocatable subtraction expression, "L67" minus "L00000000009$pb" /var/tmp//cctBfv1a.s:1162:symbol: "L67" can't be undefined in a subtraction expression /var/tmp//cctBfv1a.s:1160:non-relocatable subtraction expression, "L67" minus "L00000000009$pb" /var/tmp//cctBfv1a.s:1160:symbol: "L67" can't be undefined in a subtraction expression /var/tmp//cctBfv1a.s:622:non-relocatable subtraction expression, "L35" minus "L00000000005$pb" /var/tmp//cctBfv1a.s:622:symbol: "L35" can't be undefined in a subtraction expression /var/tmp//cctBfv1a.s:620:non-relocatable subtraction expression, "L35" minus "L00000000005$pb" /var/tmp//cctBfv1a.s:620:symbol: "L35" can't be undefined in a subtraction expression /var/tmp//cctBfv1a.s:71:non-relocatable subtraction expression, "L2" minus "L00000000001$pb" /var/tmp//cctBfv1a.s:71:symbol: "L2" can't be undefined in a subtraction expression /var/tmp//cctBfv1a.s:69:non-relocatable subtraction expression, "L2" minus "L00000000001$pb" /var/tmp//cctBfv1a.s:69:symbol: "L2" can't be undefined in a subtraction expression /var/tmp//cctBfv1a.s:unknown:Undefined local symbol L2 /var/tmp//cctBfv1a.s:unknown:Undefined local symbol L35 /var/tmp//cctBfv1a.s:unknown:Undefined local symbol L67 failed
UNSUPPORTED: fjf165a.pas
FAIL: fjf322.pas ./fjf322.pas: In function `o': gpc1: warnings being treated as errors ./fjf322.pas:8: warning: 'result_0 .length ' is used uninitialized in this function failed
FAIL: fjf403b.pas failed: failed
FAIL: fjf477.pas failed
FAIL: fjf587b.pas ./fjf587b.pas: In procedure `Foo': gpc1: warnings being treated as errors ./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: fjf998r.pas failed:
UNSUPPORTED: gmptest.pas
FAIL: goto8.pas ./goto8.pas: In main program: gpc1: warnings being treated as errors ./goto8.pas:10: warning: 'C.155422' may be used uninitialized in this function ./goto8.pas:9: warning: 'saved_stack.155436' may be used uninitialized in this function ./goto8.pas:10: warning: 'nonconstant_expr_1' may be used uninitialized in this function failed
UNSUPPORTED: longr2.pas
FAIL: mir047h.pas
FAIL: nicola4c.pas failed:
FAIL: nmaze.pas ./nmaze.pas: In procedure `perle': gpc1: warnings being treated as errors ./nmaze.pas:20: warning: 'w' may be used uninitialized in this function failed
FAIL: permute.pas ./permute.pas: In procedure `perle': gpc1: warnings being treated as errors ./permute.pas:13: warning: 'w' may be used uninitialized in this function failed
FAIL: peter5c.pas ./peter5c.pas: In method `ObjectB.GetA': gpc1: warnings being treated as errors ./peter5c.pas:16: warning: 'result_3' is used uninitialized in this function failed
FAIL: peter5f.pas ./peter5f.pas: In method `MyCollection.GetDataHandle': gpc1: warnings being treated as errors ./peter5f.pas:9: warning: 'result_0' may be used uninitialized in this function failed
FAIL: prep2p.pas FAIL: systemtest.pas
=== gpc Summary ===
# of tests 5070 # of expected passes 5041 # of unexpected failures 22 # of unsupported tests 7
gpc version 20060325, based on gcc-4.0.3 [G5:gcc/p/test] adriaan% cp gpc.log ~/Desktop/