go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use build_distinct_type_copy.
authorRichard Guenther <rguenther@suse.de>
Thu, 23 Feb 2012 14:30:11 +0000 (14:30 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 23 Feb 2012 14:30:11 +0000 (14:30 +0000)
2012-02-23  Richard Guenther  <rguenther@suse.de>

* go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
build_distinct_type_copy.

From-SVN: r184507

gcc/go/ChangeLog
gcc/go/go-gcc.cc

index eb2638fd54d0cfde3e5c954e63bfac047844d3a5..50ca12755ac8511a7449b439cd9c052cfeb7ea24 100644 (file)
@@ -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).
index e6967a830e1a43a577dbd9255f0dcd1e1308fccc..b2b61eb16083d5a1ecb1dcae9f285fcb9cc6cdb5 100644 (file)
@@ -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,