Patchwork Fix PR52349

login
register
mail settings
Submitter Richard Guenther
Date Feb. 23, 2012, 2:29 p.m.
Message ID <alpine.LNX.2.00.1202231529110.18230@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/142639/
State New
Headers show

Comments

Richard Guenther - Feb. 23, 2012, 2:29 p.m.
Approved in the PR, tested by Jakub, applied.

Richard.

2012-02-23  Richard Guenther  <rguenther@suse.de>

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

Patch

Index: go-gcc.cc
===================================================================
--- go-gcc.cc	(revision 184506)
+++ go-gcc.cc	(working copy)
@@ -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,