aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2016-10-13 04:19:57 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2016-10-13 04:19:57 +0000
commit80b489ebba3c8392c8ea23ef63b6d94bae9af3c7 (patch)
treed6c8cf29ef312b18ed9521974c8161835c720582
parent0011af7b9dce859b28a4dbdce2dff6d081193ddd (diff)
downloadgcc-80b489ebba3c8392c8ea23ef63b6d94bae9af3c7.zip
gcc-80b489ebba3c8392c8ea23ef63b6d94bae9af3c7.tar.gz
gcc-80b489ebba3c8392c8ea23ef63b6d94bae9af3c7.tar.bz2
syscall: don't use pt_regs in clone_linux.c
It's unnecessary and it reportedly breaks the build on arm64 GNU/Linux. Reviewed-on: https://go-review.googlesource.com/30978 From-SVN: r241084
-rw-r--r--gcc/go/gofrontend/MERGE2
-rw-r--r--libgo/go/syscall/clone_linux.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index 9c1ed01..08a86e9 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-f38ba8837a0c961e18d982930e192132870f3836
+6c9070324d5b7c8483bc7c17b0a8faaa1fb1ae30
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
diff --git a/libgo/go/syscall/clone_linux.c b/libgo/go/syscall/clone_linux.c
index b7eed6c..30753e6 100644
--- a/libgo/go/syscall/clone_linux.c
+++ b/libgo/go/syscall/clone_linux.c
@@ -5,18 +5,17 @@
license that can be found in the LICENSE file. */
#include <errno.h>
-#include <asm/ptrace.h>
#include <sys/syscall.h>
#include "runtime.h"
long rawClone (unsigned long flags, void *child_stack, void *ptid,
- void *ctid, struct pt_regs *regs)
+ void *ctid, void *regs)
__asm__ (GOSYM_PREFIX "syscall.rawClone")
__attribute__ ((no_split_stack));
long
-rawClone (unsigned long flags, void *child_stack, void *ptid, void *ctid, struct pt_regs *regs)
+rawClone (unsigned long flags, void *child_stack, void *ptid, void *ctid, void *regs)
{
#if defined(__arc__) || defined(__aarch64__) || defined(__arm__) || defined(__mips__) || defined(__hppa__) || defined(__powerpc__) || defined(__score__) || defined(__i386__) || defined(__xtensa__)
// CLONE_BACKWARDS