This patch from Tony Reix fixes the compilation of go-nosys.c when
HAVE_SYSCALL is not defined.  Bootstrapped on x86_64-pc-linux-gnu.
Committed to mainline.

Ian
Index: gcc/go/gofrontend/MERGE
===================================================================
--- gcc/go/gofrontend/MERGE     (revision 251420)
+++ gcc/go/gofrontend/MERGE     (working copy)
@@ -1,4 +1,4 @@
-db8e3801bf8508656606d6e465c76cdc6e9a9eb7
+a28f1d8aa306bdb5166af1f087e5f5027ce51d6d
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
Index: libgo/runtime/go-nosys.c
===================================================================
--- libgo/runtime/go-nosys.c    (revision 250873)
+++ libgo/runtime/go-nosys.c    (working copy)
@@ -506,7 +506,7 @@ strerror_r (int errnum, char *buf, size_
 
 #ifndef HAVE_SYSCALL
 int
-syscall(int number, ...)
+syscall(int number __attribute__ ((unused)), ...)
 {
   errno = ENOSYS;
   return -1;

Reply via email to