diff options
author | Clément Chigot <clement.chigot@atos.net> | 2020-09-23 16:08:21 +0200 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-09-24 11:31:12 -0700 |
commit | 1b8a23fc97de65f3188d0cdd5bfb56060defa84c (patch) | |
tree | 6ce3d311417590dc513688931ca350e3873f26be /libgo/runtime/go-varargs.c | |
parent | c1fc9f6e10e646f01194c8f150affbc1cfbc404a (diff) | |
download | gcc-1b8a23fc97de65f3188d0cdd5bfb56060defa84c.zip gcc-1b8a23fc97de65f3188d0cdd5bfb56060defa84c.tar.gz gcc-1b8a23fc97de65f3188d0cdd5bfb56060defa84c.tar.bz2 |
runtime: remove __go_ptrace on AIX
AIX ptrace syscalls doesn't have the same semantic than the glibc one.
The syscall package is already handling it correctly so disable the new
__go_ptrace C function for AIX.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/256777
Diffstat (limited to 'libgo/runtime/go-varargs.c')
-rw-r--r-- | libgo/runtime/go-varargs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c index f9270a9..9cb4a7e 100644 --- a/libgo/runtime/go-varargs.c +++ b/libgo/runtime/go-varargs.c @@ -114,7 +114,9 @@ __go_syscall6(uintptr_t flag, uintptr_t a1, uintptr_t a2, uintptr_t a3, #endif -#ifdef HAVE_SYS_PTRACE_H +// AIX ptrace is really different from Linux ptrace. Let syscall +// package handles it. +#if defined(HAVE_SYS_PTRACE_H) && !defined(_AIX) // Despite documented appearances, this is actually implemented as // a variadic function within glibc. |