===================================================================
@@ -689,13 +689,6 @@ lto_register_function_decl_in_symtab (st
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));
}
}
===================================================================
@@ -0,0 +1,18 @@
+// { dg-lto-do run }
+
+extern "C" {
+ static int f4(int);
+
+int f5(int a) {
+ extern int f4(int);
+ return f4(a);
+}
+}
+
+int f4(int a) { return 4+a; }
+
+int main(int argc, char *argv[])
+{
+ int a = f4(1);
+ return !(a == 5);
+}