libgo: redefine ia64 struct names around linux/ptrace.h
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 26 Jun 2017 17:56:14 +0000 (17:56 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 26 Jun 2017 17:56:14 +0000 (17:56 +0000)
    Avoid https://sourceware.org/bugzilla/show_bug.cgi?id=762.

    Patch by Andreas Schwab.

    Reviewed-on: https://go-review.googlesource.com/46711

From-SVN: r249662

gcc/go/gofrontend/MERGE
libgo/sysinfo.c

index 416a5876da8873af7a64f85cfa489637eea3135d..72d12b46ebc6c2b15aa9d4125162558e0aae2bc9 100644 (file)
@@ -1,4 +1,4 @@
-0a20181d00d43a423c55f4e772b759fba0619478
+1b4c2bcaa96f7f40538fd8fff308ad92ea6f482e
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index a1afc7d119c56bd9a6ba4d356a0d423e83fcdeb4..1ba27b1a0936c5d51575a70d39faca501ab6a1d8 100644 (file)
 #include <linux/netlink.h>
 #endif
 #if defined(HAVE_LINUX_PTRACE_H)
+/* Avoid https://sourceware.org/bugzilla/show_bug.cgi?id=762 .  */
+#define ia64_fpreg pt_ia64_fpreg
+#define pt_all_user_regs pt_ia64_all_user_regs
 #include <linux/ptrace.h>
+#undef ia64_fpreg
+#undef pt_all_user_regs
 #endif
 #if defined(HAVE_LINUX_RTNETLINK_H)
 #include <linux/rtnetlink.h>