aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2015-08-04 23:46:09 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2015-08-04 23:46:09 +0000
commit1a16d27768a5cb3b01661f66a6496827cfe9389f (patch)
tree8443eebd3804b828eb04f3e61fd76f0ca73b5374 /gcc/go
parentd69eea11a43b4ae992ecf0ce780f2f4143be72f8 (diff)
downloadgcc-1a16d27768a5cb3b01661f66a6496827cfe9389f.zip
gcc-1a16d27768a5cb3b01661f66a6496827cfe9389f.tar.gz
gcc-1a16d27768a5cb3b01661f66a6496827cfe9389f.tar.bz2
compiler: Verify pointer type's underlying type.
Fixes golang/go#11547. Reviewed-on: https://go-review.googlesource.com/13031 From-SVN: r226598
Diffstat (limited to 'gcc/go')
-rw-r--r--gcc/go/gofrontend/MERGE2
-rw-r--r--gcc/go/gofrontend/types.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index 70d19fb..99e7aef 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-df080adb06f0e423820f3f6b9604b0c1093ff20a
+6fb7c3509a4eda7d2403900981b53029d6727037
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.h b/gcc/go/gofrontend/types.h
index 042548f..8d2a982 100644
--- a/gcc/go/gofrontend/types.h
+++ b/gcc/go/gofrontend/types.h
@@ -2033,6 +2033,10 @@ class Pointer_type : public Type
do_traverse(Traverse*);
bool
+ do_verify()
+ { return this->to_type_->verify(); }
+
+ bool
do_has_pointer() const
{ return true; }