From 35dc312e722b8f485a9929f7c3415a93a02d1c2d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 19 Dec 2014 17:38:46 -0800 Subject: [PATCH] misc/cgo/test/backdoor: add gc build tag for thunk.s Change-Id: I6be5f610af5c56131a9d887569919372bab1d02c Reviewed-on: https://go-review.googlesource.com/1903 Reviewed-by: Minux Ma --- misc/cgo/test/backdoor/backdoor.go | 2 +- misc/cgo/test/backdoor/runtime_gccgo.c | 2 +- misc/cgo/test/backdoor/thunk.s | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/cgo/test/backdoor/backdoor.go b/misc/cgo/test/backdoor/backdoor.go index 3a973494bc..27b71b1f57 100644 --- a/misc/cgo/test/backdoor/backdoor.go +++ b/misc/cgo/test/backdoor/backdoor.go @@ -4,4 +4,4 @@ package backdoor -func LockedOSThread() bool // in thunk.s +func LockedOSThread() bool // in thunk.s or runtime_gccgo.c diff --git a/misc/cgo/test/backdoor/runtime_gccgo.c b/misc/cgo/test/backdoor/runtime_gccgo.c index 218b2c3ebc..b75f47b92d 100644 --- a/misc/cgo/test/backdoor/runtime_gccgo.c +++ b/misc/cgo/test/backdoor/runtime_gccgo.c @@ -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 diff --git a/misc/cgo/test/backdoor/thunk.s b/misc/cgo/test/backdoor/thunk.s index ae735c8a34..8240faf63b 100644 --- a/misc/cgo/test/backdoor/thunk.s +++ b/misc/cgo/test/backdoor/thunk.s @@ -5,6 +5,7 @@ // Assembly to get into package runtime without using exported symbols. // +build amd64 amd64p32 arm 386 +// +build gc #include "textflag.h" -- 2.50.0