* dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 Dec 2010 22:01:32 +0000 (22:01 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 Dec 2010 22:01:32 +0000 (22:01 +0000)
to prevent mangling with lto frontend.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167460 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dwarf2asm.c

index f56b070..7c1b32d 100644 (file)
@@ -1,5 +1,10 @@
 2010-12-03  Jan Hubicka  <jh@suse.cz>
 
+       * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
+       to prevent mangling with lto frontend.
+
+2010-12-03  Jan Hubicka  <jh@suse.cz>
+
        * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
        * lto-cgraph.c (merge_profile_summaries): Fix thinko.
 
index eefc29f..b480698 100644 (file)
@@ -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;