summaryrefslogtreecommitdiff
path: root/gcc/dwarf2asm.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-04 22:01:32 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-04 22:01:32 +0000
commitf53d83604f156b741380ae066d7ce775e228ee22 (patch)
tree323cb63c21832d1661d3b6d929be5d5b558d7e0c /gcc/dwarf2asm.c
parent555491e24f4600b5e8baa1e54562b84c25ca2da3 (diff)
downloadgcc-f53d83604f156b741380ae066d7ce775e228ee22.tar.gz
* dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
to prevent mangling with lto frontend. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167460 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2asm.c')
-rw-r--r--gcc/dwarf2asm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/dwarf2asm.c b/gcc/dwarf2asm.c
index eefc29fd9a3..b480698b49e 100644
--- a/gcc/dwarf2asm.c
+++ b/gcc/dwarf2asm.c
@@ -905,6 +905,7 @@ dw2_output_indirect_constant_1 (splay_tree_node node,
id = (tree) node->value;
decl = build_decl (UNKNOWN_LOCATION, VAR_DECL, id, ptr_type_node);
+ SET_DECL_ASSEMBLER_NAME (decl, id);
DECL_ARTIFICIAL (decl) = 1;
DECL_IGNORED_P (decl) = 1;
DECL_INITIAL (decl) = decl;