(make_decl_rtl): Update DECL_ASSEMBLER_NAME for local
authorJason Merrill <merrill@gnu.org>
Tue, 7 May 1996 16:26:09 +0000 (16:26 +0000)
committerJason Merrill <merrill@gnu.org>
Tue, 7 May 1996 16:26:09 +0000 (16:26 +0000)
|       statics.

From-SVN: r11950

gcc/varasm.c

index cc103c4f679ea6ca9eabb870795fd08c8c7a6ebc..ffcdd916de4f6b8e677bf55926a45a6baf689308 100644 (file)
@@ -703,8 +703,7 @@ make_decl_rtl (decl, asmspec, top_level)
       else if (TREE_CODE (decl) == VAR_DECL
               && DECL_SECTION_NAME (decl) != NULL_TREE
               && DECL_INITIAL (decl) == NULL_TREE
-              && DECL_COMMON (decl)
-              && ! flag_no_common)
+              && DECL_COMMON (decl))
        {
          warning_with_decl (decl,
                             "section attribute ignored for uninitialized variable `%s'");
@@ -734,6 +733,7 @@ make_decl_rtl (decl, asmspec, top_level)
 
          DECL_RTL (decl) = gen_rtx (MEM, DECL_MODE (decl),
                                     gen_rtx (SYMBOL_REF, Pmode, name));
+         DECL_ASSEMBLER_NAME (decl) = get_identifier (name);
 
          /* If this variable is to be treated as volatile, show its
             tree node has side effects.  If it has side effects, either