diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-07-18 23:14:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-07-18 23:14:29 +0000 |
commit | 9e45ca5f83954a340cc78c2f86b7b3294188047f (patch) | |
tree | 127c7047f2588027e80a69215a4ce7e2adb7b509 /libgo/runtime/runtime.h | |
parent | ab86687fee4024af20d852e26fbb743de05d0efe (diff) | |
download | gcc-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/runtime/runtime.h')
-rw-r--r-- | libgo/runtime/runtime.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index 9f84f52..3324038 100644 --- a/libgo/runtime/runtime.h +++ b/libgo/runtime/runtime.h @@ -217,7 +217,6 @@ extern M* runtime_getallm(void) extern Sched* runtime_sched; extern uint32 runtime_panicking(void) __asm__ (GOSYM_PREFIX "runtime.getPanicking"); -extern int32 runtime_ncpu; extern struct debugVars runtime_debug; extern bool runtime_isstarted; @@ -237,7 +236,6 @@ void runtime_gogo(G*) struct __go_func_type; void runtime_args(int32, byte**) __asm__ (GOSYM_PREFIX "runtime.args"); -void runtime_osinit(); void runtime_alginit(void) __asm__ (GOSYM_PREFIX "runtime.alginit"); void runtime_goargs(void) |