Commit 0d08ea48 by Jason Merrill Committed by Jason Merrill

cp-lang.c (ok_to_generate_alias_set_for_type): Backend-created structs are safe.

        * cp-lang.c (ok_to_generate_alias_set_for_type): Backend-created
        structs are safe.

From-SVN: r53402
parent 51286de6
2002-05-12 Jason Merrill <jason@redhat.com>
* cp-lang.c (ok_to_generate_alias_set_for_type): Backend-created
structs are safe.
2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk> 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
* cp-tree.h (flag_ansi): Remove. * cp-tree.h (flag_ansi): Remove.
......
...@@ -210,6 +210,9 @@ ok_to_generate_alias_set_for_type (t) ...@@ -210,6 +210,9 @@ ok_to_generate_alias_set_for_type (t)
if ((TREE_CODE (t) == RECORD_TYPE) || (TREE_CODE (t) == UNION_TYPE)) if ((TREE_CODE (t) == RECORD_TYPE) || (TREE_CODE (t) == UNION_TYPE))
{ {
tree fields; tree fields;
/* Backend-created structs are safe. */
if (! CLASS_TYPE_P (t))
return true;
/* PODs are safe. */ /* PODs are safe. */
if (! CLASSTYPE_NON_POD_P(t)) if (! CLASSTYPE_NON_POD_P(t))
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment