summaryrefslogtreecommitdiff
path: root/gcc/dwarf2asm.c
diff options
context:
space:
mode:
authorGuozhi Wei <carrot@google.com>2013-05-13 23:04:10 +0000
committerWei Guozhi <carrot@gcc.gnu.org>2013-05-13 23:04:10 +0000
commit56f3e9ac1ab824fe92362cb221cabebf1fcf2f2d (patch)
tree57bb9a154bae43cdac4ec553646e7ed31ac34c47 /gcc/dwarf2asm.c
parent61a359f6aa60d094490df984bb8c6345a42d9d44 (diff)
downloadgcc-56f3e9ac1ab824fe92362cb221cabebf1fcf2f2d.tar.gz
dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
* dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC. From-SVN: r198855
Diffstat (limited to 'gcc/dwarf2asm.c')
-rw-r--r--gcc/dwarf2asm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/dwarf2asm.c b/gcc/dwarf2asm.c
index 65d0b0218ce..37dc8959bdc 100644
--- a/gcc/dwarf2asm.c
+++ b/gcc/dwarf2asm.c
@@ -906,6 +906,7 @@ dw2_output_indirect_constant_1 (splay_tree_node node,
DECL_IGNORED_P (decl) = 1;
DECL_INITIAL (decl) = decl;
TREE_READONLY (decl) = 1;
+ TREE_STATIC (decl) = 1;
if (TREE_PUBLIC (id))
{
@@ -914,8 +915,6 @@ dw2_output_indirect_constant_1 (splay_tree_node node,
if (USE_LINKONCE_INDIRECT)
DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN;
}
- else
- TREE_STATIC (decl) = 1;
sym_ref = gen_rtx_SYMBOL_REF (Pmode, sym);
assemble_variable (decl, 1, 1, 1);