diff options
author | Jason Merrill <merrill@gnu.org> | 1996-05-07 16:26:09 +0000 |
---|---|---|
committer | Jason Merrill <merrill@gnu.org> | 1996-05-07 16:26:09 +0000 |
commit | d51602543daf0e69f1bff13cccedab38d14e4c87 (patch) | |
tree | 39c2aca24263ed5d714f02ef7a764918ca5af3a3 /gcc | |
parent | ff91ad086a898e7cd96a7424533af87d1bd00d2b (diff) | |
download | gcc-d51602543daf0e69f1bff13cccedab38d14e4c87.zip gcc-d51602543daf0e69f1bff13cccedab38d14e4c87.tar.gz gcc-d51602543daf0e69f1bff13cccedab38d14e4c87.tar.bz2 |
(make_decl_rtl): Update DECL_ASSEMBLER_NAME for local
| statics.
From-SVN: r11950
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/varasm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index cc103c4..ffcdd91 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 |