aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2018-10-26 16:58:13 +0000
committerIan Lance Taylor <iant@golang.org>2018-10-26 16:58:13 +0000
commitd8ebcb663640ed8afcb19eff8ae77d58c5ab70ce (patch)
tree6f84007d49ecd45dd9d6f670be52dc032a686f08
parenta0b4107df63145b6f1a63387bda7dfb8e0167b19 (diff)
libgo: avoid use of 'local' directive in shell script
Avoid declaring shell variables with 'local' (not supported on all systems of interest). Reviewed-on: https://go-review.googlesource.com/c/145021 git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@265534 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/go/gofrontend/MERGE2
-rwxr-xr-xlibgo/testsuite/gotest4
2 files changed, 2 insertions, 4 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index ef6ce579423..f56ac802ad0 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-ad50884d2a4b653f7f20edc8b441fe6ad6570d55
+9785e5c4e868ba55efdb33fc51872b4821770167
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 0b2e572a905..a82386aab3a 100755
--- a/libgo/testsuite/gotest
+++ b/libgo/testsuite/gotest
@@ -513,9 +513,7 @@ localname() {
# Returned: leaf.Mumble
#
symtogo() {
- local s=""
- local result=""
- local ndots=""
+ result=""
for tp in $*
do
s=$(echo "$tp" | sed -e 's/\.\.z2f/%/g' | sed -e 's/.*%//')