]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgo: handle stat st_atim32 field and SYS_SECCOMP
authorIan Lance Taylor <iant@golang.org>
Wed, 29 Jun 2022 22:32:04 +0000 (15:32 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 30 Jun 2022 19:35:08 +0000 (12:35 -0700)
Patches for musl support, from Sören Tempel.

Fixes PR go/105225

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

gcc/go/gofrontend/MERGE
libgo/mksysinfo.sh

index 4fde25af76e892d1cf2e22b1de310a82a41262f9..0d49e9e70c641f40aa4415dd17b67d1dc7b449f8 100644 (file)
@@ -1,4 +1,4 @@
-63782f8a318e9eebfdc983f171a920c7a937c759
+548720bca6bff21ebc9aba22249d9ce45bbd90c7
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 5aa309155c33b8462c437aca313859815769d5d8..ea1fa17d4189c5e9b7647ad9e61489666dcad4fb 100755 (executable)
@@ -127,6 +127,7 @@ fi
 
 # The syscall numbers.  We force the names to upper case.
 grep '^const _SYS_' gen-sysinfo.go | \
+  grep -v '^const _SYS_SECCOMP = ' | \
   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
   while read sys; do
     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
@@ -506,7 +507,7 @@ fi
 
 # For historical reasons Go uses the suffix "timespec" instead of "tim" for
 # stat_t's time fields on NetBSD.
-st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
 if test "${GOOS}" = "netbsd"; then
     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
 fi