From: Ilya Enkovich Date: Fri, 3 Apr 2015 08:39:29 +0000 (+0000) Subject: lto-cgraph.c (input_cgraph_1): Always link instrumented assembler name with original... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3d72251cc7791c95e1913c7e0fe44336028f1cd;p=gcc.git lto-cgraph.c (input_cgraph_1): Always link instrumented assembler name with original one. * lto-cgraph.c (input_cgraph_1): Always link instrumented assembler name with original one. From-SVN: r221850 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 59dbeec7033..a11ec1cc0e5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-04-02 Ilya Enkovich + + * lto-cgraph.c (input_cgraph_1): Always link instrumented + assembler name with original one. + 2015-04-02 Uros Bizjak * config/i386/i386.c (ix86_register_priority): Use AX_REG. diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c index fa18d363b20..ac50e4bbd24 100644 --- a/gcc/lto-cgraph.c +++ b/gcc/lto-cgraph.c @@ -1617,9 +1617,8 @@ input_cgraph_1 (struct lto_file_decl_data *file_data, } /* Restore decl names reference. */ - if (IDENTIFIER_TRANSPARENT_ALIAS (DECL_ASSEMBLER_NAME (cnode->decl)) - && !TREE_CHAIN (DECL_ASSEMBLER_NAME (cnode->decl))) - TREE_CHAIN (DECL_ASSEMBLER_NAME (cnode->decl)) + IDENTIFIER_TRANSPARENT_ALIAS (DECL_ASSEMBLER_NAME (cnode->decl)) = 1; + TREE_CHAIN (DECL_ASSEMBLER_NAME (cnode->decl)) = DECL_ASSEMBLER_NAME (cnode->orig_decl); } }