aboutsummaryrefslogtreecommitdiff
path: root/libgo/sysinfo.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-09-19 00:03:25 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-09-19 00:03:25 +0000
commitab2d47a87fe8a0989c766a0082f4598d9bf6143d (patch)
tree69a7779b1a17281ce09c8a3563f601cd6a526063 /libgo/sysinfo.c
parent1ea956609a5a4ac12841ef86353995bd434fa1ef (diff)
downloadgcc-ab2d47a87fe8a0989c766a0082f4598d9bf6143d.zip
gcc-ab2d47a87fe8a0989c766a0082f4598d9bf6143d.tar.gz
gcc-ab2d47a87fe8a0989c766a0082f4598d9bf6143d.tar.bz2
libgo: support gollvm build on arm64 linux
This CL serves as part of an initial change for enabling gollvm building on arm64 linux, the rest of the change will be covered by another one to the gollvm repo. Incorporate type definition of 'uint128' to 'runtime' and 'syscall' packges, the change is not specific to arm64 linux but made available for all platforms. Verified by building and unit-testing gollvm on linux x86-64 and arm64. Verified by building and checking gccgo on linux x86-64 and arm64. Fixes golang/go#33711 Change-Id: I4720c7d810cfd4ef720962fb4104c5641b2459c0 From-SVN: r275919
Diffstat (limited to 'libgo/sysinfo.c')
-rw-r--r--libgo/sysinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
index 4ab798c..0692fd4 100644
--- a/libgo/sysinfo.c
+++ b/libgo/sysinfo.c
@@ -424,7 +424,11 @@ EREF(MNT_FORCE);
#if defined(HAVE_SYS_PTRACE_H)
// From <sys/ptrace.h>
+#if defined (__aarch64__)
+SREF(user_pt_regs);
+#else
SREF(pt_regs);
+#endif
EREF(PTRACE_PEEKTEXT);
#endif