]> gcc.gnu.org Git - gcc.git/commitdiff
part of PR objc/21992
authorAndrew Pinski <pinskia@physics.uc.edu>
Tue, 9 Aug 2005 17:53:25 +0000 (17:53 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Tue, 9 Aug 2005 17:53:25 +0000 (10:53 -0700)
2005-08-09  Andrew Pinski  <pinskia@physics.uc.edu>

        part of PR objc/21992
        * objc-act.c (handle_class_ref): The ref decl is always referenced.

From-SVN: r102920

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

index 31a1e8f91594cffd09c10b2e801756aaa3cf0865..f6fde14f03dfd3eb3c593d1653213103df9032b0 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-09  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       part of PR objc/21992
+       * objc-act.c (handle_class_ref): The ref decl is always referenced.
+
 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
 
        Make CONSTRUCTOR use VEC to store initializers.
index d004fb5eb0481e107848460308f6bbf846eca1eb..697e0290c2d1b6da58a84abcb490cb14504ca25b 100644 (file)
@@ -9303,6 +9303,8 @@ handle_class_ref (tree chain)
   DECL_INITIAL (decl) = exp;
   TREE_STATIC (decl) = 1;
   TREE_USED (decl) = 1;
+  /* Force the output of the decl as this forces the reference of the class.  */
+  mark_decl_referenced (decl);
 
   pushdecl (decl);
   rest_of_decl_compilation (decl, 0, 0);
This page took 0.067017 seconds and 5 git commands to generate.