From 9937ab0287a8205c8431ba082efcd1944d16df8d Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 4 Dec 2010 23:01:32 +0100 Subject: [PATCH] dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME to prevent mangling with lto frontend. * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME to prevent mangling with lto frontend. From-SVN: r167460 --- gcc/ChangeLog | 5 +++++ gcc/dwarf2asm.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f56b07015f0..7c1b32d7ee9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-12-03 Jan Hubicka + + * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME + to prevent mangling with lto frontend. + 2010-12-03 Jan Hubicka * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H. 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;