This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C++ PATCH to ok_to_generate_alias_set_for_type
- From: Jason Merrill <jason at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 12 May 2002 18:28:30 +0100
- Subject: C++ PATCH to ok_to_generate_alias_set_for_type
Apparently this is necessary for the new profile-arcs code.
Applied trunk only.
2002-05-12 Jason Merrill <jason@redhat.com>
* cp-lang.c (ok_to_generate_alias_set_for_type): Backend-created
structs are safe.
*** cp-lang.c.~1~ Fri May 10 23:03:14 2002
--- cp-lang.c Sun May 12 00:56:29 2002
*************** ok_to_generate_alias_set_for_type (t)
*** 210,215 ****
--- 212,220 ----
if ((TREE_CODE (t) == RECORD_TYPE) || (TREE_CODE (t) == UNION_TYPE))
{
tree fields;
+ /* Backend-created structs are safe. */
+ if (! CLASS_TYPE_P (t))
+ return true;
/* PODs are safe. */
if (! CLASSTYPE_NON_POD_P(t))
return true;