From: Ian Lance Taylor Date: Tue, 10 Sep 2019 20:32:42 +0000 (+0000) Subject: re PR go/91621 (libgo/mksysinfo.sh: please avoid test ==) X-Git-Tag: releases/gcc-9.3.0~635 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25130d4dfd25a70672f265b51ebe945d8eb4d398;p=thirdparty%2Fgcc.git re PR go/91621 (libgo/mksysinfo.sh: please avoid test ==) PR go/91621 mksysinfo: change test == to test = Fixes https://gcc.gnu.org/PR91621 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/194569 From-SVN: r275609 --- diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index c9dd8d494a95..f086c507e075 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -1127,7 +1127,7 @@ 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 +if test "$statfs" = ""; then statfs=`grep '^type _statfs ' gen-sysinfo.go || true` fi if ! echo "$statfs" | grep f_flags; then