(rest_of_decl_compilation): Test that var.
authorRichard Stallman <rms@gnu.org>
Sun, 24 Oct 1993 07:06:49 +0000 (07:06 +0000)
committerRichard Stallman <rms@gnu.org>
Sun, 24 Oct 1993 07:06:49 +0000 (07:06 +0000)
From-SVN: r5878

gcc/toplev.c

index aa6ed31ed764f7cb3e14c1671be60be1fe21f718..739b8d51551168a643f9477fde45da21880268ec 100644 (file)
@@ -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)
     {