]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mksysinfo: actually use modified Statfs_t value
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Mar 2019 14:19:56 +0000 (14:19 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Mar 2019 14:19:56 +0000 (14:19 +0000)
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/165737

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269424 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/go/gofrontend/MERGE
libgo/mksysinfo.sh

index 487548a3b934459ef43a5356f9abc9fa5f1bc0c3..a93dedb7aaf4311961ebc4dac303547f08a6113a 100644 (file)
@@ -1,4 +1,4 @@
-9b1374ded3d5e352a655d96bfe1bfb6aa1491a98
+13c98c3477647888fc7a186e9055793b0961e806
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index e0ae30f6ba2deac3a5dbd985d6034b270664bb04..418ba2cfdef09b90ccd0404eb1e3580f193b9ef7 100755 (executable)
@@ -1115,14 +1115,13 @@ grep '^const _FALLOC_' gen-sysinfo.go |
 # Prefer largefile variant if available.
 # CentOS 5 does not have f_flags, so pull from f_spare.
 statfs=`grep '^type _statfs64 ' gen-sysinfo.go || true`
+if test "$statfs" == ""; then
+  statfs=`grep '^type _statfs ' gen-sysinfo.go || true`
+fi
 if ! echo "$statfs" | grep f_flags; then
   statfs=`echo "$statfs" | sed -e 's/f_spare \[4+1\]\([^ ;]*\)/f_flags \1; f_spare [3+1]\1/'`
 fi
-if test "$statfs" != ""; then
-  grep '^type _statfs64 ' gen-sysinfo.go
-else
-  grep '^type _statfs ' gen-sysinfo.go
-fi | sed -e 's/type _statfs64/type Statfs_t/' \
+echo "$statfs" | sed -e 's/type _statfs64/type Statfs_t/' \
         -e 's/type _statfs/type Statfs_t/' \
         -e 's/f_type/Type/' \
         -e 's/f_bsize/Bsize/' \