runtime: don't check for stale runtime
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 26 Mar 2018 19:29:27 +0000 (19:29 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 26 Mar 2018 19:29:27 +0000 (19:29 +0000)
    The gccgo runtime is never stale, and on a system with gc sources in
    ~/go the test may wind up checking whether the gc runtime is stale.

    Reviewed-on: https://go-review.googlesource.com/102282

From-SVN: r258865

gcc/go/gofrontend/MERGE
libgo/go/runtime/crash_test.go

index 5efedb7fc5bea9e09a1786a550a1bdfc12b0b7b2..76b5acac1f88e3b1b0459cd1d8b52f121e7c5557 100644 (file)
@@ -1,4 +1,4 @@
-e9c0e4d8fd3d951a367bb6a50e5cb546e01b81a8
+3aa5fc91094c5f24b26747ec176ad44cde784fc7
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 7a099beb765eff5a0add8edeca9f6b110accc503..602630d955fba68be564a89d04b3504a47a12a6a 100644 (file)
@@ -150,6 +150,9 @@ var (
 
 func checkStaleRuntime(t *testing.T) {
        staleRuntimeOnce.Do(func() {
+               if runtime.Compiler == "gccgo" {
+                       return
+               }
                // 'go run' uses the installed copy of runtime.a, which may be out of date.
                out, err := testenv.CleanCmdEnv(exec.Command(testenv.GoToolPath(t), "list", "-gcflags=all="+os.Getenv("GO_GCFLAGS"), "-f", "{{.Stale}}", "runtime")).CombinedOutput()
                if err != nil {