]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR lto/69003 (Undefined reference with gcc -r incremental linking)
authorJan Hubicka <hubicka@ucw.cz>
Mon, 18 Jan 2016 15:58:06 +0000 (16:58 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 18 Jan 2016 15:58:06 +0000 (15:58 +0000)
PR lto/69003
* lto-partition.c (rename_statics): Fix pasto.

From-SVN: r232525

gcc/lto/ChangeLog
gcc/lto/lto-partition.c

index 724a525e860a200a3d14b5b658acf2bc5c441328..ae2aba22e2f918c4368e2d85f6f18d7755d3b8b7 100644 (file)
@@ -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
index 81a63a5b92bfaa9d1e91171d06c2673c22b63151..9eb63c27f33213c8e9a050bc5a57efb41be385d0 100644 (file)
@@ -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))