On Tue, May 29, 2012 at 09:26:37PM +0200, Dominique Dhumieres wrote: > gcc-dg-runtest [list $srcdir/$subdir/savres.c] $alti > > # All done. > +torture-finish > dg-finish > > is required to avoid the errors of the kind > > ERROR: tcl error sourcing > /home/gccbuild/gcc_trunk_anonsvn/gcc/gcc/testsuite/gcc.target/powerpc/powerpc.exp. > ERROR: torture-init: torture_without_loops is not empty as expected
Yes indeed, and it would be wise to ensure torture-options.exp is loaded too. I'm committing the following as obvious. * gcc.target/powerpc/powerpc.exp: Load torture-options.exp, call torture-finish. Index: gcc/testsuite/gcc.target/powerpc/powerpc.exp =================================================================== --- gcc/testsuite/gcc.target/powerpc/powerpc.exp (revision 187999) +++ gcc/testsuite/gcc.target/powerpc/powerpc.exp (working copy) @@ -23,6 +23,7 @@ # Load support procs. load_lib gcc-dg.exp +load_lib torture-options.exp # If a testcase doesn't have special options, use these. global DEFAULT_CFLAGS @@ -47,4 +48,5 @@ gcc-dg-runtest [list $srcdir/$subdir/savres.c] $alti # All done. +torture-finish dg-finish > FAIL: gcc.target/powerpc/savres.c (test for excess errors) > Excess errors: > /opt/gcc/work/gcc/testsuite/gcc.target/powerpc/savres.c:109:3: error: PIC > register clobbered by 'r31' in 'asm' Hmm, this will be because darwin is PIC by default. Does adding -static to the dg-options line in savres.c fix the darwin fail? -- Alan Modra Australia Development Lab, IBM