diff mbox series

libgo patch committed: Don't define sys_SETREUID and friends

Message ID CAOyqgcXOZq76vyZEres+MDMqZW_KDH9eg3v8Mf07td6VdsuHvA@mail.gmail.com
State New
Headers show
Series libgo patch committed: Don't define sys_SETREUID and friends | expand

Commit Message

Ian Lance Taylor Jan. 5, 2021, 9:53 p.m. UTC
This libgo patch changes the syscall package to not define
sys_SETREUID and some friends.  We don't use them anyhow, sice we
always call the C library functions which do the right thing.  And
they aren't defined on all GNU/Linux variants.  This fixes GCC PR
98510.  Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu.
Committed to mainline.

Ian
f47c00cf95d7dbbe7147c61a4a6bc20921c3da2c
diff mbox series

Patch

diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index c80f1cc1425..094b8fad483 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@ 
-5b075d039a20f32b9c2711ca67a3e52fba74f957
+a2578eb3983514641f0baf44d27d6474d3a96758
 
 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/setuidgid_32_linux.go b/libgo/go/syscall/setuidgid_32_linux.go
index b0b7f61d221..1fe7120d1c6 100644
--- a/libgo/go/syscall/setuidgid_32_linux.go
+++ b/libgo/go/syscall/setuidgid_32_linux.go
@@ -12,10 +12,4 @@  const (
 
 	sys_SETGID = SYS_SETGID32
 	sys_SETUID = SYS_SETUID32
-
-	sys_SETREGID = SYS_SETREGID32
-	sys_SETREUID = SYS_SETREUID32
-
-	sys_SETRESGID = SYS_SETRESGID32
-	sys_SETRESUID = SYS_SETRESUID32
 )
diff --git a/libgo/go/syscall/setuidgid_linux.go b/libgo/go/syscall/setuidgid_linux.go
index 38c83c92f97..22fa334bfa5 100644
--- a/libgo/go/syscall/setuidgid_linux.go
+++ b/libgo/go/syscall/setuidgid_linux.go
@@ -12,10 +12,4 @@  const (
 
 	sys_SETGID = SYS_SETGID
 	sys_SETUID = SYS_SETUID
-
-	sys_SETREGID = SYS_SETREGID
-	sys_SETREUID = SYS_SETREUID
-
-	sys_SETRESGID = SYS_SETRESGID
-	sys_SETRESUID = SYS_SETRESUID
 )