diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-05 05:52:01 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-05 05:52:01 +0000 |
commit | b2c4af5e79a1c17df9214775988a66dac92f2667 (patch) | |
tree | dd22110790902e6a0fb0065c11210552323ea19e /gcc/objc | |
parent | dffd35e9cbc1fc31997e74bcbccfab6a0d5327a6 (diff) | |
download | gcc-b2c4af5e79a1c17df9214775988a66dac92f2667.tar.gz |
2004-08-04 Geoffrey Keating <geoffk@apple.com>
PR 14516
* c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
* c-common.h (make_rtl_for_local_static): Delete.
* c-decl.c (shadow_tag_warned): Clean up comment.
(finish_decl): Clean up spacing. Use set_user_assembler_name when
appropriate. Don't pass asmspec to rest_of_decl_compilation.
* c-semantics.c (make_rtl_for_local_static): Delete.
* expr.c (init_block_move_fn): Use set_user_assembler_name.
(init_block_clear_fn): Likewise.
* passes.c (rest_of_decl_compilation): Remove asmspec parameter,
expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
* toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
* tree.h (make_decl_rtl): Remove second parameter.
(set_user_assembler_name): New.
* varasm.c (set_user_assembler_name): New.
(make_decl_rtl): Remove second parameter. Update callers in many
files.
Index: cp/ChangeLog
2004-08-04 Geoffrey Keating <geoffk@apple.com>
* decl.c (make_rtl_for_nonlocal_decl): Set DECL_ASSEMBLER_NAME rather
than passing it as a parameter to rest_of_decl_compilation.
* decl2.c (grokfield): Use set_user_assembler_name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85593 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/objc-act.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 0da09aec33a..a54933dcb28 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -1091,7 +1091,7 @@ create_builtin_decl (enum tree_code code, tree type, const char *name) if (code == VAR_DECL) { TREE_STATIC (decl) = 1; - make_decl_rtl (decl, 0); + make_decl_rtl (decl); pushdecl (decl); DECL_ARTIFICIAL (decl) = 1; } @@ -1488,7 +1488,7 @@ objc_add_static_instance (tree constructor, tree class_decl) Postpone till end of input. */ DECL_DEFER_OUTPUT (decl) = 1; pushdecl_top_level (decl); - rest_of_decl_compilation (decl, 0, 1, 0); + rest_of_decl_compilation (decl, 1, 0); /* Add the DECL to the head of this CLASS' list. */ TREE_PURPOSE (*chain) = tree_cons (NULL_TREE, decl, TREE_PURPOSE (*chain)); @@ -1892,7 +1892,7 @@ build_module_descriptor (void) DECL_ARTIFICIAL (execclass_decl) = 1; TREE_PUBLIC (execclass_decl) = 1; pushdecl (execclass_decl); - rest_of_decl_compilation (execclass_decl, 0, 0, 0); + rest_of_decl_compilation (execclass_decl, 0, 0); assemble_external (execclass_decl); /* void _GLOBAL_$I$<gnyf> () {objc_execClass (&L_OBJC_MODULES);} */ @@ -2022,7 +2022,7 @@ generate_static_references (void) expr = objc_build_constructor (TREE_TYPE (static_instances_decl), nreverse (decls)); finish_decl (static_instances_decl, expr, NULL_TREE); - rest_of_decl_compilation (static_instances_decl, 0, 0, 0); + rest_of_decl_compilation (static_instances_decl, 0, 0); } /* Output all strings. */ @@ -2102,7 +2102,7 @@ build_selector_reference_decl (void) DECL_ARTIFICIAL (decl) = 1; DECL_CONTEXT (decl) = 0; - make_decl_rtl (decl, 0); + make_decl_rtl (decl); pushdecl_top_level (decl); return decl; @@ -2309,7 +2309,7 @@ build_class_reference_decl (void) DECL_CONTEXT (decl) = 0; DECL_ARTIFICIAL (decl) = 1; - make_decl_rtl (decl, 0); + make_decl_rtl (decl); pushdecl_top_level (decl); return decl; @@ -2459,7 +2459,7 @@ build_objc_string_decl (enum string_section section) DECL_CONTEXT (decl) = 0; DECL_ARTIFICIAL (decl) = 1; - make_decl_rtl (decl, 0); + make_decl_rtl (decl); pushdecl_top_level (decl); return decl; @@ -5951,7 +5951,7 @@ build_protocol_reference (tree p) TREE_USED (decl) = 1; DECL_ARTIFICIAL (decl) = 1; - make_decl_rtl (decl, 0); + make_decl_rtl (decl); pushdecl_top_level (decl); } @@ -8954,7 +8954,7 @@ handle_class_ref (tree chain) TREE_PUBLIC (decl) = 1; pushdecl (decl); - rest_of_decl_compilation (decl, 0, 0, 0); + rest_of_decl_compilation (decl, 0, 0); /* Make a decl for the address. */ sprintf (string, "%sobjc_class_ref_%s", @@ -8966,7 +8966,7 @@ handle_class_ref (tree chain) TREE_USED (decl) = 1; pushdecl (decl); - rest_of_decl_compilation (decl, 0, 0, 0); + rest_of_decl_compilation (decl, 0, 0); } static void |