This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libgo patch committed: Run tests in source file order


The libgo tests expect to be run in the order in which they appear in
the source file.  This patch uses -fno-toplevel-reorder to make sure
that happens.  Bootstrapped and ran libgo tests on
x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

diff -r 8020981d5461 libgo/testsuite/gotest
--- a/libgo/testsuite/gotest	Mon Jul 11 13:25:57 2011 -0700
+++ b/libgo/testsuite/gotest	Tue Jul 12 17:56:52 2011 -0700
@@ -288,11 +288,11 @@
 	prefixarg="-fgo-prefix=$prefix"
 fi
 
-$GC -g $prefixarg -c -I . -o _gotest_.o $gofiles $pkgbasefiles
+$GC -g $prefixarg -c -I . -fno-toplevel-reorder -o _gotest_.o $gofiles $pkgbasefiles
 if $havex; then
 	mkdir -p `dirname $package`
 	cp _gotest_.o `dirname $package`/lib`basename $package`.a
-	$GC -g -c -I . -o $xofile $xgofiles
+	$GC -g -c -I . -fno-toplevel-reorder -o $xofile $xgofiles
 fi
 
 # They all compile; now generate the code to call them.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]