objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as always referenced.

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
This commit is contained in:
Andrew Pinski 2004-07-09 16:32:38 -07:00
parent 968d62b517
commit 3d0d0a7abc
2 changed files with 14 additions and 2 deletions

View 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.

View 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. */