This patch to the Go testsuite skips the nilptr.go test when the
default is to produce PIE. This should fix GCC PR 66406. Ran Go
testsuite on x86_64-pc-linux-gnu. Committed to mainline.
Ian
2015-11-20 Ian Lance Taylor <[email protected]>
PR go/66406
* go.test/go-test.exp (go-gc-tests): Skip nilptr.go if PIE.
Index: go.test/go-test.exp
===================================================================
--- go.test/go-test.exp (revision 229630)
+++ go.test/go-test.exp (working copy)
@@ -398,6 +398,11 @@ proc go-gc-tests { } {
}
}
+ if [check_effective_target_pie_enabled] {
+ untested $test
+ continue
+ }
+
if { [file tail $test] == "init1.go" } {
# This tests whether GC runs during init, which for gccgo
# it currently does not.