]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
syscall: don't define syscall stub on Hurd
authorIan Lance Taylor <iant@golang.org>
Tue, 29 Oct 2024 22:39:02 +0000 (15:39 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 30 Oct 2024 18:33:07 +0000 (11:33 -0700)
Patch from Samuel Thibault.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/623415

gcc/go/gofrontend/MERGE
libgo/go/syscall/syscall_funcs.go
libgo/go/syscall/syscall_funcs_stubs.go
libgo/runtime/go-nosys.c

index c39aca9b1b008db8295cd285cd4d61a21a4e50eb..59badf80f40b2c5147f22feecfab2a55a22e6b07 100644 (file)
@@ -1,4 +1,4 @@
-092668d6ce6d7b3aff6797247cd53dc44319c558
+f9ea9801058aa98a421784da12b76cda0b4c6cf2
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index a906fa5a42e961cd61e6a90db230063d54a0d3cf..fc14cb18286b252c41b19cb26947a409c1b425b2 100644 (file)
@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build darwin || dragonfly || freebsd || hurd || linux || netbsd || openbsd || solaris
-// +build darwin dragonfly freebsd hurd linux netbsd openbsd solaris
+//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
+// +build darwin dragonfly freebsd linux netbsd openbsd solaris
 
 package syscall
 
index 11f12bd9ae3c6d305bfb5f2ed3509a7eb0ffa22a..e37a6483b02b85d3b980bf5a17605ec8c3b33cb7 100644 (file)
@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build aix || rtems
-// +build aix rtems
+//go:build aix || hurd || rtems
+// +build aix hurd rtems
 
 // These are stubs.
 
index 30222df781599c966ac3da440cdb6b47d26248e9..cd3e7664ca0619959494fad016bc4b962ed6ee3f 100644 (file)
@@ -504,7 +504,7 @@ strerror_r (int errnum, char *buf, size_t buflen)
 
 #endif /* ! HAVE_STRERROR_R */
 
-#ifndef HAVE_SYSCALL
+#if !defined(HAVE_SYSCALL) && !defined(__GNU__) /* GNU/Hurd already has a stub */
 int
 syscall(int number __attribute__ ((unused)), ...)
 {