aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/0036-gcc-go-Fix-st_-a-m-c-tim-fields-in-generated-sysinfo.patch
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2020-08-30 16:23:15 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2020-09-04 20:13:17 +0200
commitb93b0b134f7d10720a4359579ff4f55575ac90e3 (patch)
treecd7ca4cedc9d9518cb540359fe381926453f1d8d /main/gcc/0036-gcc-go-Fix-st_-a-m-c-tim-fields-in-generated-sysinfo.patch
parent1c38dfeeb6062544e2c67cc32a91faf22b16ce62 (diff)
main/gcc: add support for gcc-go
This adds support for gcc-go using libucontext-dev. Additionally, several patches are required to make this work with musl libc. These have been taken form Adélie Linux. However, Adélie Linux still uses gcc 8.X, I had to additional minor patches to make gcc-go 10.X compile. The changes proposed here have been reviewed and ok'ed by Ariadne.
Diffstat (limited to 'main/gcc/0036-gcc-go-Fix-st_-a-m-c-tim-fields-in-generated-sysinfo.patch')
-rw-r--r--main/gcc/0036-gcc-go-Fix-st_-a-m-c-tim-fields-in-generated-sysinfo.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/main/gcc/0036-gcc-go-Fix-st_-a-m-c-tim-fields-in-generated-sysinfo.patch b/main/gcc/0036-gcc-go-Fix-st_-a-m-c-tim-fields-in-generated-sysinfo.patch
new file mode 100644
index 00000000000..aa684913541
--- /dev/null
+++ b/main/gcc/0036-gcc-go-Fix-st_-a-m-c-tim-fields-in-generated-sysinfo.patch
@@ -0,0 +1,34 @@
+From c3a80843b7502ec2bfb5f1e5b514658c5f9dd884 Mon Sep 17 00:00:00 2001
+From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
+Date: Sun, 30 Aug 2020 18:02:28 +0200
+Subject: [PATCH] gcc-go: Fix st_{a,m,c}tim fields in generated sysinfo.go
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+There are more than one st_{a,m,c}tim fields in struct stat on time64 machines.
+
+Run the Go-isation on all of them.
+
+Taken from Adélie Linux.
+---
+ libgo/mksysinfo.sh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
+index bd2ba32cba1..972e2c379bc 100755
+--- a/libgo/mksysinfo.sh
++++ b/libgo/mksysinfo.sh
+@@ -510,9 +510,9 @@ fi | sed -e 's/type _stat64/type Stat_t/' \
+ -e 's/st_size/Size/' \
+ -e 's/st_blksize/Blksize/' \
+ -e 's/st_blocks/Blocks/' \
+- -e 's/st_atim/Atim/' \
+- -e 's/st_mtim/Mtim/' \
+- -e 's/st_ctim/Ctim/' \
++ -e 's/st_atim/Atim/g' \
++ -e 's/st_mtim/Mtim/g' \
++ -e 's/st_ctim/Ctim/g' \
+ -e 's/\([^a-zA-Z0-9_]\)_timeval\([^a-zA-Z0-9_]\)/\1Timeval\2/g' \
+ -e 's/\([^a-zA-Z0-9_]\)_timespec_t\([^a-zA-Z0-9_]\)/\1Timespec\2/g' \
+ -e 's/\([^a-zA-Z0-9_]\)_st_timespec_t\([^a-zA-Z0-9_]\)/\1StTimespec\2/g' \