From: Jan Hubicka Date: Mon, 18 Jan 2016 15:58:06 +0000 (+0100) Subject: re PR lto/69003 (Undefined reference with gcc -r incremental linking) X-Git-Tag: basepoints/gcc-7~1522 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5803bd01272dfa59256bd552c7a1bb51e3d2af95;p=thirdparty%2Fgcc.git re PR lto/69003 (Undefined reference with gcc -r incremental linking) PR lto/69003 * lto-partition.c (rename_statics): Fix pasto. From-SVN: r232525 --- diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 724a525e860a..ae2aba22e2f9 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,8 @@ +2016-01-12 Jan Hubicka + + PR lto/69003 + * lto-partition.c (rename_statics): Fix pasto. + 2016-01-18 Richard Biener PR lto/69337 diff --git a/gcc/lto/lto-partition.c b/gcc/lto/lto-partition.c index 81a63a5b92bf..9eb63c27f332 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))