objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as always referenced.
authorAndrew Pinski <pinskia@gcc.gnu.org>
Fri, 9 Jul 2004 23:32:38 +0000 (16:32 -0700)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Fri, 9 Jul 2004 23:32:38 +0000 (16:32 -0700)
2004-07-09  Andrew Pinski  <apinski@apple.com>

        * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
        always referenced.
        (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
        UOBJC_METACLASS_decl.

From-SVN: r84419

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

index 4e049420392d5793b3a9355ff26325957f0b49e3..4b04b94879a3a12a4159d4e8fe504553c70f7458 100644 (file)
@@ -1,15 +1,22 @@
+2004-07-09  Andrew Pinski  <apinski@apple.com>
+
+       * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
+       always referenced.
+       (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
+       UOBJC_METACLASS_decl.
+
 2004-07-09  James E Wilson  <wilson@specifixinc.com>
 
        PR target/16364
        * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
        do return a parallel if hfa_mode == XFmode and mode == TImode.
 
-2004-07-09 Jan Beulich <jbeulich@novell.com>
+2004-07-09  Jan Beulich  <jbeulich@novell.com>
 
        * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
        permissible for unary plus.
 
-2004-07-09 Jan Beulich <jbeulich@novell.com>
+2004-07-09  Jan Beulich  <jbeulich@novell.com>
 
        * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
        (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
index 3f17ba78bd6d9b1e59e3d3d5ca7be81528ee7b43..cdb59d0959abc4f0a35ea92fe164d4538e363b3d 100644 (file)
@@ -1864,6 +1864,8 @@ build_module_descriptor (void)
 
   /* Mark the decl to avoid "defined but not used" warning.  */
   DECL_IN_SYSTEM_HEADER (UOBJC_MODULES_decl) = 1;
+  
+  mark_decl_referenced (UOBJC_MODULES_decl);
 
   /* Generate a constructor call for the module descriptor.
      This code was generated by reading the grammar rules
@@ -4210,6 +4212,9 @@ synth_forward_declarations (void)
   /* static struct objc_class _OBJC_METACLASS_<my_name>; */
   UOBJC_METACLASS_decl = build_metadata_decl ("_OBJC_METACLASS",
                                                  objc_class_template);
+                                                 
+  mark_decl_referenced (UOBJC_CLASS_decl);
+  mark_decl_referenced (UOBJC_METACLASS_decl);
 
   /* Pre-build the following entities - for speed/convenience.  */