diff options
author | Nikhil Benesch <nikhil.benesch@gmail.com> | 2020-10-18 19:28:54 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-10-21 22:29:04 -0700 |
commit | 439407aa2c678a96bd5b430ab9c335e65beb5751 (patch) | |
tree | 62868455b7c11523dfe8daaf93e178ecb7425167 /gcc/go | |
parent | d5d9706f95378d40a8895616e167614b69dfe70a (diff) | |
download | gcc-439407aa2c678a96bd5b430ab9c335e65beb5751.zip gcc-439407aa2c678a96bd5b430ab9c335e65beb5751.tar.gz gcc-439407aa2c678a96bd5b430ab9c335e65beb5751.tar.bz2 |
syscall: only compile ptrace varargs shim on Linux
Only compile the __go_ptrace varargs shim on Linux to avoid compilation
failures on some other platforms. The C ptrace function is not entirely
portable (e.g., NetBSD has `int data` instead of `void* data`), and so
far Linux is the only platform that needs the varargs shim.
Additionally, make the types in the ptrace and raw_ptrace function
declarations match. This makes it more clear that the only difference
between the two is that calls via the former are allowed to block while
calls via the latter are not.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/263517
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index aedaf46..384ca6e 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -64c25b2365f7125a32b3146618b627f26a78c1fc +fa66bd11bbe58943e273cfa74356771c996f5b24 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. |