summaryrefslogtreecommitdiff
path: root/core/gcc/gcc-4.7.1-libgo-mksysinfo.patch
blob: 427efe8a6e0e37e1b6bf7cb8b4eae95eb6aeef34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- libgo/mksysinfo.sh	2012-06-29 14:23:30.684708901 +0200
+++ libgo/mksysinfo.sh	2012-06-29 14:23:20.782761973 +0200
@@ -522,10 +522,10 @@ grep '^const _DT_' gen-sysinfo.go |
 # The rusage struct.
 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 <bits/resource.h>.
   rusage=`echo $rusage | sed -e 's/Godump_[0-9]* struct {\([^}]*\)};/\1/g'`
+  rusage=`echo $rusage | sed -e 's/type _rusage struct //' -e 's/[{}]//g'`
+  rusage=`echo $rusage | sed -e 's/^ *//'`
   nrusage=
   while test -n "$rusage"; do
     field=`echo $rusage | sed -e 's/^\([^;]*\);.*$/\1/'`