+2019-02-05 Nikhil Benesch <nikhil.benesch@gmail.com>
+
+ PR go/89019
+ * go-gcc.cc (Gcc_backend::placeholder_struct_type): Mark
+ placeholder structs as requiring structural equality.
+ (Gcc_backend::set_placeholder_pointer_type): Propagate the
+ canonical type from the desired pointer type to the placeholder
+ pointer type.
+
2019-01-09 Ian Lance Taylor <iant@golang.org>
PR go/86343
}
gcc_assert(TREE_CODE(tt) == POINTER_TYPE);
TREE_TYPE(pt) = TREE_TYPE(tt);
+ TYPE_CANONICAL(pt) = TYPE_CANONICAL(tt);
if (TYPE_NAME(pt) != NULL_TREE)
{
// Build the data structure gcc wants to see for a typedef.
get_identifier_from_string(name),
ret);
TYPE_NAME(ret) = decl;
+
+ // The struct type that eventually replaces this placeholder will require
+ // structural equality. The placeholder must too, so that the requirement
+ // for structural equality propagates to references that are constructed
+ // before the replacement occurs.
+ SET_TYPE_STRUCTURAL_EQUALITY(ret);
}
return this->make_type(ret);
}
+2019-02-05 Nikhil Benesch <nikhil.benesch@gmail.com>
+
+ PR go/89019
+ * lib/go-torture.exp: Test compiling with -flto.
+
2019-02-06 Joseph Myers <joseph@codesourcery.com>
PR c/88584