aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2022-02-04 19:59:59 -0800
committerIan Lance Taylor <iant@golang.org>2022-02-08 20:08:09 -0800
commit3ab49b1c822cf8c5748fa4de0ac970c948de6f8a (patch)
tree0696141de5cddb0755c91ff21befd313bf0b9e29 /libgo/go/runtime
parente52a683170877d140eebc9782731eaf11897db71 (diff)
downloadgcc-3ab49b1c822cf8c5748fa4de0ac970c948de6f8a.zip
gcc-3ab49b1c822cf8c5748fa4de0ac970c948de6f8a.tar.gz
gcc-3ab49b1c822cf8c5748fa4de0ac970c948de6f8a.tar.bz2
compiler, internal/abi: implement FuncPCABI0, FuncPCABIInternal
The Go 1.18 standard library uses an internal/abi package with two functions that are implemented in the compiler. This patch implements them in the gofrontend, to support the upcoming update to 1.18. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/383514
Diffstat (limited to 'libgo/go/runtime')
-rw-r--r--libgo/go/runtime/proc.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/libgo/go/runtime/proc.go b/libgo/go/runtime/proc.go
index 0534290..343f13b 100644
--- a/libgo/go/runtime/proc.go
+++ b/libgo/go/runtime/proc.go
@@ -5,6 +5,7 @@
package runtime
import (
+ "internal/abi"
"internal/cpu"
"runtime/internal/atomic"
"runtime/internal/sys"
@@ -4243,11 +4244,11 @@ func _GC() { _GC() }
func _LostSIGPROFDuringAtomic64() { _LostSIGPROFDuringAtomic64() }
func _VDSO() { _VDSO() }
-var _SystemPC = funcPC(_System)
-var _ExternalCodePC = funcPC(_ExternalCode)
-var _LostExternalCodePC = funcPC(_LostExternalCode)
-var _GCPC = funcPC(_GC)
-var _LostSIGPROFDuringAtomic64PC = funcPC(_LostSIGPROFDuringAtomic64)
+var _SystemPC = abi.FuncPCABIInternal(_System)
+var _ExternalCodePC = abi.FuncPCABIInternal(_ExternalCode)
+var _LostExternalCodePC = abi.FuncPCABIInternal(_LostExternalCode)
+var _GCPC = abi.FuncPCABIInternal(_GC)
+var _LostSIGPROFDuringAtomic64PC = abi.FuncPCABIInternal(_LostSIGPROFDuringAtomic64)
// Called if we receive a SIGPROF signal.
// Called by the signal handler, may run during STW.