aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2016-01-18 16:58:06 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2016-01-18 15:58:06 +0000
commit5803bd01272dfa59256bd552c7a1bb51e3d2af95 (patch)
tree3a944858ee8cb8f0d65aaf9ff6c1ee8d1013dc1f /gcc/lto
parent4b0b30ef85db2eec7cd69ee3049b69ea46e9a752 (diff)
downloadgcc-5803bd01272dfa59256bd552c7a1bb51e3d2af95.zip
gcc-5803bd01272dfa59256bd552c7a1bb51e3d2af95.tar.gz
gcc-5803bd01272dfa59256bd552c7a1bb51e3d2af95.tar.bz2
re PR lto/69003 (Undefined reference with gcc -r incremental linking)
PR lto/69003 * lto-partition.c (rename_statics): Fix pasto. From-SVN: r232525
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog5
-rw-r--r--gcc/lto/lto-partition.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 724a525..ae2aba2 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,3 +1,8 @@
+2016-01-12 Jan Hubicka <hubicka@ucw.cz>
+
+ PR lto/69003
+ * lto-partition.c (rename_statics): Fix pasto.
+
2016-01-18 Richard Biener <rguenther@suse.de>
PR lto/69337
diff --git a/gcc/lto/lto-partition.c b/gcc/lto/lto-partition.c
index 81a63a5..9eb63c2 100644
--- a/gcc/lto/lto-partition.c
+++ b/gcc/lto/lto-partition.c
@@ -1077,8 +1077,8 @@ rename_statics (lto_symtab_encoder_t encoder, symtab_node *node)
IDENTIFIER_POINTER
(DECL_ASSEMBLER_NAME (s->get_alias_target()->decl))))
&& ((s->real_symbol_p ()
- && !DECL_EXTERNAL (node->decl)
- && !TREE_PUBLIC (node->decl))
+ && !DECL_EXTERNAL (s->decl)
+ && !TREE_PUBLIC (s->decl))
|| may_need_named_section_p (encoder, s))
&& (!encoder
|| lto_symtab_encoder_lookup (encoder, s) != LCC_NOT_FOUND))