aboutsummaryrefslogtreecommitdiff
path: root/libgo/go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2017-07-18 23:14:29 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-07-18 23:14:29 +0000
commit9e45ca5f83954a340cc78c2f86b7b3294188047f (patch)
tree127c7047f2588027e80a69215a4ce7e2adb7b509 /libgo/go
parentab86687fee4024af20d852e26fbb743de05d0efe (diff)
downloadgcc-9e45ca5f83954a340cc78c2f86b7b3294188047f.zip
gcc-9e45ca5f83954a340cc78c2f86b7b3294188047f.tar.gz
gcc-9e45ca5f83954a340cc78c2f86b7b3294188047f.tar.bz2
re PR go/81451 (missing futex check - libgo/runtime/thread-linux.c:12:0 futex.h:13:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’)
PR go/81451 runtime: inline runtime_osinit We had two identical copies of runtime_osinit. They set runtime_ncpu, a variable that is no longer used. Removing that leaves us with two lines. Inline those two lines in the two places the function was called. This fixes GCC PR 81451. Reviewed-on: https://go-review.googlesource.com/48862 From-SVN: r250326
Diffstat (limited to 'libgo/go')
-rw-r--r--libgo/go/runtime/stubs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/runtime/stubs.go b/libgo/go/runtime/stubs.go
index a3d0918..30d87c4 100644
--- a/libgo/go/runtime/stubs.go
+++ b/libgo/go/runtime/stubs.go
@@ -422,13 +422,13 @@ func getPanicking() uint32 {
return panicking
}
-// Temporary for gccgo until we initialize ncpu in Go.
+// Called by C code to set the number of CPUs.
//go:linkname setncpu runtime.setncpu
func setncpu(n int32) {
ncpu = n
}
-// Temporary for gccgo until we reliably initialize physPageSize in Go.
+// Called by C code to set the page size.
//go:linkname setpagesize runtime.setpagesize
func setpagesize(s uintptr) {
if physPageSize == 0 {