This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]