lto-cgraph.c (input_cgraph_1): Always link instrumented assembler name with original...
authorIlya Enkovich <ilya.enkovich@intel.com>
Fri, 3 Apr 2015 08:39:29 +0000 (08:39 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Fri, 3 Apr 2015 08:39:29 +0000 (08:39 +0000)
* lto-cgraph.c (input_cgraph_1): Always link instrumented
assembler name with original one.

From-SVN: r221850

gcc/ChangeLog
gcc/lto-cgraph.c

index 59dbeec70334731cfd028d74f4d5e2758c55d1f2..a11ec1cc0e5d2bea66667ceda1aa539a572cbf97 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
+
+       * lto-cgraph.c (input_cgraph_1): Always link instrumented
+       assembler name with original one.
+
 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.c (ix86_register_priority): Use AX_REG.
index fa18d363b202f9aa44d8bf28c0400304e5c6b961..ac50e4bbd249ca154c86c1744b061ee3f4696277 100644 (file)
@@ -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);
            }
        }