aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-02-28 09:13:40 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-02-28 09:13:40 +0000
commit95510497873486319b680dfedf017415a2bb8173 (patch)
tree07724d060627fafa69e3a4e5be91ba4a4da1e0e6 /gcc/lto
parent99670dc34438767fc1858147990409776a9c17ce (diff)
downloadgcc-95510497873486319b680dfedf017415a2bb8173.zip
gcc-95510497873486319b680dfedf017415a2bb8173.tar.gz
gcc-95510497873486319b680dfedf017415a2bb8173.tar.bz2
re PR lto/52400 (lto1: ICE with extern on static linkage)
2012-02-28 Richard Guenther <rguenther@suse.de> PR lto/52400 * lto.c (lto_register_function_decl_in_symtab): Do not register a reverse renamed decl mapping. * g++.dg/lto/pr52400_0.C: New testcase. From-SVN: r184618
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog6
-rw-r--r--gcc/lto/lto.c7
2 files changed, 6 insertions, 7 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 825d268..6d074db 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,3 +1,9 @@
+2012-02-28 Richard Guenther <rguenther@suse.de>
+
+ PR lto/52400
+ * lto.c (lto_register_function_decl_in_symtab): Do not register
+ a reverse renamed decl mapping.
+
2012-01-06 Jakub Jelinek <jakub@redhat.com>
PR lto/51774
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 2ec6c44..f267d2a 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -689,13 +689,6 @@ lto_register_function_decl_in_symtab (struct data_in *data_in, tree decl)
lto_record_renamed_decl (data_in->file_data,
IDENTIFIER_POINTER (old_assembler_name),
IDENTIFIER_POINTER (new_assembler_name));
-
- /* Also register the reverse mapping so that we can find the
- new name given to an existing assembler name (used when
- restoring alias pairs in input_constructors_or_inits. */
- lto_record_renamed_decl (data_in->file_data,
- IDENTIFIER_POINTER (new_assembler_name),
- IDENTIFIER_POINTER (old_assembler_name));
}
}