[PATCH] Fix transparent alias chain construction in change_decl_assembler_name

Ilya Enkovich enkovich.gnu@gmail.com
Tue Mar 18 09:01:00 GMT 2014


Hi,

Here is a small patch to fix ICE in change_decl_assembler_name.  I found this problem working on my experimental branch which uses transparent alias chains heavily and I don't have reproducer for the trunk.

Bootstrapped and checked on linux-x86_64.

Thanks,
Ilya
--

2014-03-17  Ilya Enkovich  <ilya.enkovich@intel.com>

       * symtab.c (change_decl_assembler_name): Fix transparent alias
       chain construction.


diff --git a/gcc/symtab.c b/gcc/symtab.c
index 5d69803..2d6f665 100644
--- a/gcc/symtab.c
+++ b/gcc/symtab.c
@@ -492,7 +492,7 @@ change_decl_assembler_name (tree decl, tree name)
       if (alias)
        {
          IDENTIFIER_TRANSPARENT_ALIAS (name) = 1;
-         TREE_CHAIN (DECL_ASSEMBLER_NAME (name)) = alias;
+         TREE_CHAIN (name) = alias;
        }
       if (node)
        insert_to_assembler_name_hash (node, true);



More information about the Gcc-patches mailing list