From: Ian Lance Taylor Date: Tue, 5 Jun 2012 05:32:54 +0000 (+0000) Subject: mksysinfo: Fix for recent change to glibc . X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=70b9f51628c32d91a451ff6616f675d5a738413b;p=gcc.git mksysinfo: Fix for recent change to glibc . From-SVN: r188228 --- diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 655337ffb75..6fe04039876 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -524,6 +524,8 @@ rusage=`grep '^type _rusage struct' gen-sysinfo.go` if test "$rusage" != ""; then rusage=`echo $rusage | sed -e 's/type _rusage struct //' -e 's/[{}]//g'` rusage=`echo $rusage | sed -e 's/^ *//'` + # Remove anonymous unions from GNU/Linux . + rusage=`echo $rusage | sed -e 's/Godump_[0-9]* struct {\([^}]*\)};/\1/g'` nrusage= while test -n "$rusage"; do field=`echo $rusage | sed -e 's/^\([^;]*\);.*$/\1/'`