Hi.
When introducing fndecl_built_in_p I did a thinko.
Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
And LTO bootstrap is fine on x86_64-linux-gnu.
I'm going to install the patch.
Martin
gcc/lto/ChangeLog:
2018-08-29 Martin Liska <[email protected]>
PR bootstrap/87130
* lto.c (read_cgraph_and_symbols): Fix thinko, revert
to behavior before r263887.
---
gcc/lto/lto.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 5b92bee026e..598492df527 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -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;