PR go/86343
* go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Call
build_variant_type_copy rather than build_distinct_type_copy.
From-SVN: r262225
+2018-06-28 Ian Lance Taylor <iant@golang.org>
+
+ PR go/86343
+ * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Call
+ build_variant_type_copy rather than build_distinct_type_copy.
+
2018-06-08 Cherry Zhang <cherryyz@google.com>
* go-gcc.cc (class Gcc_backend): Remove
if (TYPE_NAME(t) != NULL_TREE)
{
// Build the data structure gcc wants to see for a typedef.
- tree copy = build_distinct_type_copy(t);
+ tree copy = build_variant_type_copy(t);
TYPE_NAME(copy) = NULL_TREE;
DECL_ORIGINAL_TYPE(TYPE_NAME(t)) = copy;
}