From: Richard Stallman Date: Sun, 24 Oct 1993 07:06:49 +0000 (+0000) Subject: (rest_of_decl_compilation): Test that var. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e10b3cc7c179bfd8939e000027a5cc4953d410d;p=gcc.git (rest_of_decl_compilation): Test that var. From-SVN: r5878 --- diff --git a/gcc/toplev.c b/gcc/toplev.c index aa6ed31ed76..739b8d51551 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -90,6 +90,7 @@ extern char *version_string, *language_string; to ASM_FINISH_DECLARE_OBJECT. */ extern int size_directive_output; +extern tree last_assemble_variable_decl; extern void init_lex (); extern void init_decl_processing (); @@ -2245,8 +2246,11 @@ rest_of_decl_compilation (decl, asmspec, top_level, at_end) && (DECL_INITIAL (decl) == 0 || DECL_INITIAL (decl) == error_mark_node))) assemble_variable (decl, top_level, at_end, 0); - ASM_FINISH_DECLARE_OBJECT (asm_out_file, decl, - top_level, at_end); + if (decl == last_assemble_variable_decl) + { + ASM_FINISH_DECLARE_OBJECT (asm_out_file, decl, + top_level, at_end); + } }); else if (DECL_REGISTER (decl) && asmspec != 0) {