dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
authorGuozhi Wei <carrot@google.com>
Mon, 13 May 2013 23:04:10 +0000 (23:04 +0000)
committerWei Guozhi <carrot@gcc.gnu.org>
Mon, 13 May 2013 23:04:10 +0000 (23:04 +0000)
* dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.

From-SVN: r198855

gcc/ChangeLog
gcc/dwarf2asm.c

index e6ba1144c9eb351adf0bf6602e6426c28466a0b4..8f7a633d2f5ad0aef821076bb7cbedf7028ff84d 100644 (file)
@@ -1,3 +1,7 @@
+2013-05-13  Guozhi Wei  <carrot@google.com>
+
+       * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
+
 2013-05-13  Kai Tietz  <ktietz@redhat.com>
 
        PR target/56975
index 65d0b0218ceff416f5c56673797c80524ddeb78a..37dc8959bdcf8969efa1cd236009748471c2e517 100644 (file)
@@ -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);