OSDN Git Service

2012-02-23 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Feb 2012 14:30:11 +0000 (14:30 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Feb 2012 14:30:11 +0000 (14:30 +0000)
* go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use
build_distinct_type_copy.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184507 138bc75d-0d04-0410-961f-82ee72b054a4

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

index eb2638f..50ca127 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 e6967a8..b2b61eb 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,