]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgo: avoid use of 'local' directive in shell script
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 26 Oct 2018 16:58:13 +0000 (16:58 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 26 Oct 2018 16:58:13 +0000 (16:58 +0000)
    Avoid declaring shell variables with 'local' (not supported
    on all systems of interest).

    Reviewed-on: https://go-review.googlesource.com/c/145021

From-SVN: r265534

gcc/go/gofrontend/MERGE
libgo/testsuite/gotest

index ef6ce579423ba6fbf3255a7e829f097aa70353d9..f56ac802ad08dd71e1fdc532d529c292e1bc6280 100644 (file)
@@ -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.
index 0b2e572a90562b86057e18e9c503ca1042a0d24a..a82386aab3a7f4995925c208c1e2e92569614de0 100755 (executable)
@@ -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/.*%//')