From d51602543daf0e69f1bff13cccedab38d14e4c87 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 7 May 1996 16:26:09 +0000 Subject: [PATCH] (make_decl_rtl): Update DECL_ASSEMBLER_NAME for local | statics. From-SVN: r11950 --- gcc/varasm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/varasm.c b/gcc/varasm.c index cc103c4f679..ffcdd916de4 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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 -- 2.30.2