aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-09-13 17:07:20 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-09-13 17:07:20 +0000
commit57cccc860e501be56096a2863ae571175cb87960 (patch)
tree3d596d4ce968124409d6eb1c762652624895d11e /libgo
parent9a235e7e85aec64b023b6725c5a2f3fc3a122d3b (diff)
downloadgcc-57cccc860e501be56096a2863ae571175cb87960.zip
gcc-57cccc860e501be56096a2863ae571175cb87960.tar.gz
gcc-57cccc860e501be56096a2863ae571175cb87960.tar.bz2
libgo: don't use \? in grep pattern
It's not supported by Solaris grep. Just use * instead; it matches more but it shouldn't matter. Fixes https://gcc.gnu.org/PR91764 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/195238 From-SVN: r275700
Diffstat (limited to 'libgo')
-rwxr-xr-xlibgo/match.sh2
-rwxr-xr-xlibgo/testsuite/gotest2
2 files changed, 2 insertions, 2 deletions
diff --git a/libgo/match.sh b/libgo/match.sh
index c8fb960..281acf7 100755
--- a/libgo/match.sh
+++ b/libgo/match.sh
@@ -135,7 +135,7 @@ for f in $gofiles; do
if test x$tag1 != xnonmatchingtag -a x$tag2 != xnonmatchingtag; then
# Pipe through cat so that `set -e` doesn't affect fgrep.
- tags=`sed '/^package /q' < $f | grep '^// \?+build ' | cat`
+ tags=`sed '/^package /q' < $f | grep '^// *+build ' | cat`
omatch=true
first=true
match=false
diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest
index 9d46916..4f1a2f8 100755
--- a/libgo/testsuite/gotest
+++ b/libgo/testsuite/gotest
@@ -326,7 +326,7 @@ x)
esac
if test x$tag1 != xnonmatchingtag -a x$tag2 != xnonmatchingtag; then
- tags=`sed '/^package /q' < $f | grep '^// \?+build '`
+ tags=`sed '/^package /q' < $f | grep '^// *+build '`
omatch=true
first=true
match=false