]> Cypherpunks repositories - gostls13.git/commitdiff
misc/cgo/test/backdoor: add gc build tag for thunk.s
authorIan Lance Taylor <iant@golang.org>
Sat, 20 Dec 2014 01:38:46 +0000 (17:38 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 20 Dec 2014 02:08:50 +0000 (02:08 +0000)
Change-Id: I6be5f610af5c56131a9d887569919372bab1d02c
Reviewed-on: https://go-review.googlesource.com/1903
Reviewed-by: Minux Ma <minux@golang.org>
misc/cgo/test/backdoor/backdoor.go
misc/cgo/test/backdoor/runtime_gccgo.c
misc/cgo/test/backdoor/thunk.s

index 3a973494bc1b611cd62ad5f3459f2ef8aab6790e..27b71b1f5722ee3b58be844501a24e5e6fdb7f74 100644 (file)
@@ -4,4 +4,4 @@
 
 package backdoor
 
-func LockedOSThread() bool // in thunk.s
+func LockedOSThread() bool // in thunk.s or runtime_gccgo.c
index 218b2c3ebcd7cdf6cb9eacdea72c4a2ccebc7c77..b75f47b92d469e334c5b21489d46196150876ae1 100644 (file)
@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 
 // Expose some runtime functions for testing.
-// This is the gccgo version of runtime.c.
+// This is the gccgo version of thunk.s.
 
 // +build gccgo
 
index ae735c8a3447ad3e37bd797b89f247674de499c0..8240faf63b794a066b45e7e4bb98ec3e46f6c112 100644 (file)
@@ -5,6 +5,7 @@
 // Assembly to get into package runtime without using exported symbols.
 
 // +build amd64 amd64p32 arm 386
+// +build gc
 
 #include "textflag.h"