summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2020-01-10 15:28:20 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2020-01-10 15:28:20 +0000
commit3a33f87ffb921ba469a0c25d22e6b225be38d084 (patch)
treeb5732445fc4b2945a8a74e29cf16b4a1a32b51be
parent78f02e8003d1f16b9f7371eac0f39ad734c8b714 (diff)
downloadgcc-3a33f87ffb921ba469a0c25d22e6b225be38d084.tar.gz
gotest: don't use local
It's not part of the POSIX shell standard. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/214300 From-SVN: r280118
-rw-r--r--gcc/go/gofrontend/MERGE2
-rwxr-xr-xlibgo/testsuite/gotest3
2 files changed, 2 insertions, 3 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index e7f037ac6b8..a6127013783 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-98c4c21b52afd6384f9364527bd7f5f9a1c752cf
+a69ad9c7d1b45edcf8062a07d3a3c9b6838c04f8
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest
index 4293db92664..6929de34ba0 100755
--- a/libgo/testsuite/gotest
+++ b/libgo/testsuite/gotest
@@ -538,8 +538,7 @@ symtogo() {
# Takes an example name and puts any output into the file example.txt.
# It strips comment markers but does not otherwise change the output.
exampleoutput() {
- local n=$(testname $1)
- local f
+ n=$(testname $1)
for f in $gofiles $xgofiles; do
if ! grep "^func $n(" $f >/dev/null 2>&1; then
continue