aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2017-09-29 14:14:40 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-09-29 14:14:40 +0000
commit039073944d46918f540461555d79de357cf9dfe9 (patch)
tree5253d7739fbd73f74be1b133cbbf6cc028d53f1c /libgo
parentd4dfb0056252fbc272a0b15fb9f9697deab3f954 (diff)
downloadgcc-039073944d46918f540461555d79de357cf9dfe9.zip
gcc-039073944d46918f540461555d79de357cf9dfe9.tar.gz
gcc-039073944d46918f540461555d79de357cf9dfe9.tar.bz2
mksysinfo: strip locale structs
We don't need them, and this fixes the build when using uClibc-ng 1.0.26 as originally reported at https://gcc.gnu.org/ml/gcc-patches/2017-09/msg01930.html Reviewed-on: https://go-review.googlesource.com/67110 From-SVN: r253291
Diffstat (limited to 'libgo')
-rwxr-xr-xlibgo/mkrsysinfo.sh1
-rwxr-xr-xlibgo/mksysinfo.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/libgo/mkrsysinfo.sh b/libgo/mkrsysinfo.sh
index 44a3a6b..aee0163 100755
--- a/libgo/mkrsysinfo.sh
+++ b/libgo/mkrsysinfo.sh
@@ -23,6 +23,7 @@ grep -v '^// ' gen-sysinfo.go | \
grep -v '^type _timespec_t ' | \
grep -v '^type _timespec ' | \
grep -v '^type _epoll_' | \
+ grep -v '^type _*locale[_ ]' | \
grep -v 'in6_addr' | \
grep -v 'sockaddr_in6' | \
sed -e 's/\([^a-zA-Z0-9_]\)_timeval\([^a-zA-Z0-9_]\)/\1timeval\2/g' \
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index f7e88a6..cbe5b97 100755
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -34,6 +34,7 @@ grep -v '^// ' gen-sysinfo.go | \
grep -v '^type _timespec ' | \
grep -v '^type _timestruc_t ' | \
grep -v '^type _epoll_' | \
+ grep -v '^type _*locale[_ ]' | \
grep -v 'in6_addr' | \
grep -v 'sockaddr_in6' | \
sed -e 's/\([^a-zA-Z0-9_]\)_timeval\([^a-zA-Z0-9_]\)/\1Timeval\2/g' \