aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/go/gofrontend/MERGE2
-rw-r--r--gcc/go/gofrontend/types.cc9
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index ba95507..6a291b5 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-3995d545f1e112c682753f342eaef0877551a649
+84b8000c32f671c6cc89df1290ed6e0170308644
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc
index f6c104c..1b96dc1 100644
--- a/gcc/go/gofrontend/types.cc
+++ b/gcc/go/gofrontend/types.cc
@@ -2802,8 +2802,13 @@ Ptrmask::symname() const
// Redirect the bits vector to the digest, and update the prefix.
prefix = "X";
- for (char c : digest)
- shabits.push_back((unsigned char) c);
+ for (std::string::const_iterator p = digest.begin();
+ p != digest.end();
+ ++p)
+ {
+ unsigned char c = *p;
+ shabits.push_back(c);
+ }
bits = &shabits;
}