aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2022-03-04 10:18:00 -0800
committerIan Lance Taylor <iant@golang.org>2022-03-04 10:46:55 -0800
commitc3402486afa8b6f98d6b0cc05cd229526bc7611f (patch)
treed1bd6baaaf9b408213b2a298957bce1bb99490b1 /libgo
parente71079517f16fee6759bad2be14f574c3548743e (diff)
downloadgcc-c3402486afa8b6f98d6b0cc05cd229526bc7611f.zip
gcc-c3402486afa8b6f98d6b0cc05cd229526bc7611f.tar.gz
gcc-c3402486afa8b6f98d6b0cc05cd229526bc7611f.tar.bz2
mkruntimeinc: skip _FILE
We don't need it, and it breaks uclibc. PR go/101246 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/390021
Diffstat (limited to 'libgo')
-rwxr-xr-xlibgo/mkruntimeinc.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/mkruntimeinc.sh b/libgo/mkruntimeinc.sh
index 61d830a..5ef3eca 100755
--- a/libgo/mkruntimeinc.sh
+++ b/libgo/mkruntimeinc.sh
@@ -18,13 +18,14 @@ rm -f runtime.inc.tmp2 runtime.inc.tmp3
# sigset conflicts with system type sigset on AIX, so we need to rename it.
# boundsError has a field name that is a C keyword, and we don't need it.
# mSpanInuse is both a constant and a field name, and we don't need it.
+# _FILE has incomplete __lock and __state fields on uclibc-ng.
grep -v "#define _" ${IN} | grep -v "#define [cm][012345] " | grep -v "#define empty " | grep -v "#define \\$" | grep -v "#define mSpanInUse " > runtime.inc.tmp2
for pattern in '_[GP][a-z]' _Max _Lock _Sig _Trace _MHeap _Num
do
grep "#define $pattern" ${IN} >> runtime.inc.tmp2
done
-TYPES="_Complex_lock _Reader_lock semt boundsError"
+TYPES="_Complex_lock _Reader_lock semt boundsError _FILE"
for TYPE in $TYPES
do
sed -e '/struct '${TYPE}' {/,/^}/s/^.*$//' runtime.inc.tmp2 > runtime.inc.tmp3;