aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-02-23 14:30:11 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-02-23 14:30:11 +0000
commit3762c343865620e03f47987d181095efd936f6f9 (patch)
tree94caa0cf85ea023d4eb0ea19e11f1be93d3b6b2b /gcc/go
parent5ddfab6d9ce135bd57a71ddd8f6814a8ff186b72 (diff)
downloadgcc-3762c343865620e03f47987d181095efd936f6f9.zip
gcc-3762c343865620e03f47987d181095efd936f6f9.tar.gz
gcc-3762c343865620e03f47987d181095efd936f6f9.tar.bz2
go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use build_distinct_type_copy.
2012-02-23 Richard Guenther <rguenther@suse.de> * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use build_distinct_type_copy. From-SVN: r184507
Diffstat (limited to 'gcc/go')
-rw-r--r--gcc/go/ChangeLog5
-rw-r--r--gcc/go/go-gcc.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog
index eb2638fd..50ca127 100644
--- a/gcc/go/ChangeLog
+++ b/gcc/go/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-23 Richard Guenther <rguenther@suse.de>
+
+ * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
+ build_distinct_type_copy.
+
2012-02-17 Ian Lance Taylor <iant@google.com>
* Make-lang.in (go/import.o): Add dependency on $(GO_LEX_H).
diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc
index e6967a8..b2b61eb 100644
--- a/gcc/go/go-gcc.cc
+++ b/gcc/go/go-gcc.cc
@@ -602,7 +602,7 @@ Btype*
Gcc_backend::placeholder_pointer_type(const std::string& name,
Location location, bool)
{
- tree ret = build_variant_type_copy(ptr_type_node);
+ tree ret = build_distinct_type_copy(ptr_type_node);
if (!name.empty())
{
tree decl = build_decl(location.gcc_location(), TYPE_DECL,