re PR bootstrap/35660 (Bootstrap failure on i686-apple-darwin9 at revision 133434.)
authorAndreas Tobler <a.tobler@schweiz.org>
Fri, 21 Mar 2008 20:49:25 +0000 (20:49 +0000)
committerAndreas Tobler <andreast@gcc.gnu.org>
Fri, 21 Mar 2008 20:49:25 +0000 (21:49 +0100)
2008-03-21  Andreas Tobler  <a.tobler@schweiz.org>

PR bootstrap/35660
* objc-act.c (objc_generate_cxx_ctor_or_dtor): Rename IS_AGGR_TYPE to
MAYBE_CLASS_TYPE_P.
(objc_generate_cxx_cdtors): Likewise.
(add_instance_variable): Likewise.

From-SVN: r133436

gcc/objc/ChangeLog
gcc/objc/objc-act.c

index 6a1fc5671b4d578de8fb1e44820e41d91a26da07..b71a4d1a85f19a6d2baea3c298b226db2badef43 100644 (file)
@@ -1,3 +1,11 @@
+2008-03-21  Andreas Tobler  <a.tobler@schweiz.org>
+
+       PR bootstrap/35660
+       * objc-act.c (objc_generate_cxx_ctor_or_dtor): Rename IS_AGGR_TYPE to
+       MAYBE_CLASS_TYPE_P.
+       (objc_generate_cxx_cdtors): Likewise.
+       (add_instance_variable): Likewise.
+
 2008-02-26  Tom Tromey  <tromey@redhat.com>
 
        * objc-act.c (objc_init): Remove old location code.
index c8b418ce3281e9ad846272bc4651587e2c37843f..576e5695b994e828b9514a867b42f1f17ed5f2c3 100644 (file)
@@ -4482,7 +4482,7 @@ objc_generate_cxx_ctor_or_dtor (bool dtor)
          /* Call the ivar's default constructor or destructor.  Do not
             call the destructor unless a corresponding constructor call
             has also been made (or is not needed).  */
-         if (IS_AGGR_TYPE (type)
+         if (MAYBE_CLASS_TYPE_P (type)
              && (dtor
                  ? (TYPE_HAS_NONTRIVIAL_DESTRUCTOR (type)
                     && (!TYPE_NEEDS_CONSTRUCTING (type)
@@ -4535,7 +4535,7 @@ objc_generate_cxx_cdtors (void)
        {
          tree type = TREE_TYPE (ivar);
 
-         if (IS_AGGR_TYPE (type))
+         if (MAYBE_CLASS_TYPE_P (type))
            {
              if (TYPE_NEEDS_CONSTRUCTING (type)
                  && TYPE_HAS_DEFAULT_CONSTRUCTOR (type))
@@ -7056,7 +7056,7 @@ add_instance_variable (tree class, int public, tree field_decl)
      need to either (1) warn the user about it or (2) generate suitable
      constructor/destructor call from '- .cxx_construct' or '- .cxx_destruct'
      methods (if '-fobjc-call-cxx-cdtors' was specified).  */
-  if (IS_AGGR_TYPE (field_type)
+  if (MAYBE_CLASS_TYPE_P (field_type)
       && (TYPE_NEEDS_CONSTRUCTING (field_type)
          || TYPE_HAS_NONTRIVIAL_DESTRUCTOR (field_type)
          || TYPE_POLYMORPHIC_P (field_type)))