From: Andrew Pinski Date: Fri, 9 Jul 2004 23:32:38 +0000 (-0700) Subject: objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as always referenced. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d0d0a7abc844b8517eff551b262d47509a6a29e;p=gcc.git objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as always referenced. 2004-07-09 Andrew Pinski * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4e049420392..4b04b94879a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,15 +1,22 @@ +2004-07-09 Andrew Pinski + + * 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 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 +2004-07-09 Jan Beulich * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes permissible for unary plus. -2004-07-09 Jan Beulich +2004-07-09 Jan Beulich * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED. (BT_FN_UINT): Rename from BT_FN_UNSIGNED. diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 3f17ba78bd6..cdb59d0959a 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -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_; */ 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. */