Fix thinko in lto.c (PR bootstrap/87130).
authorMartin Liska <mliska@suse.cz>
Wed, 29 Aug 2018 10:48:50 +0000 (12:48 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 29 Aug 2018 10:48:50 +0000 (10:48 +0000)
2018-08-29  Martin Liska  <mliska@suse.cz>

PR bootstrap/87130
* lto.c (read_cgraph_and_symbols): Fix thinko, revert
to behavior before r263887.

From-SVN: r263950

gcc/lto/ChangeLog
gcc/lto/lto.c

index e0bd7c1027ef771c009669c02e3ddaf5414d36e0..f997f03ed88fa9afb13974dd95a3587ba3fd7bd1 100644 (file)
@@ -1,3 +1,9 @@
+2018-08-29  Martin Liska  <mliska@suse.cz>
+
+       PR bootstrap/87130
+       * lto.c (read_cgraph_and_symbols): Fix thinko, revert
+       to behavior before r263887.
+
 2018-08-27  Martin Liska  <mliska@suse.cz>
 
        * lto-lang.c (handle_const_attribute): Use new function
index 5b92bee026e81abec7c8c4a095cdf1074b0e80d4..598492df5277a5d2dc37c73cff34d6e15bad20ba 100644 (file)
@@ -2923,8 +2923,8 @@ read_cgraph_and_symbols (unsigned nfiles, const char **fnames)
   FOR_EACH_SYMBOL (snode)
     if (snode->externally_visible && snode->real_symbol_p ()
        && snode->lto_file_data && snode->lto_file_data->resolution_map
-       && !(TREE_CODE (snode->decl) != FUNCTION_DECL
-            || fndecl_built_in_p (snode->decl))
+       && !(TREE_CODE (snode->decl) == FUNCTION_DECL
+            && fndecl_built_in_p (snode->decl))
        && !(VAR_P (snode->decl) && DECL_HARD_REGISTER (snode->decl)))
       {
        ld_plugin_symbol_resolution_t *res;