aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2022-12-21 12:44:11 +0100
committerJan Hubicka <jh@suse.cz>2022-12-21 12:44:11 +0100
commit6bfc384f559e448f0f93603a46c41ad9dd34f890 (patch)
treefc25a59334cf2bc233cd56482cdab86d73cdeafe
parent39ebd3a9f5cb8555bcb0422086e646ce833028a4 (diff)
downloadgcc-6bfc384f559e448f0f93603a46c41ad9dd34f890.zip
gcc-6bfc384f559e448f0f93603a46c41ad9dd34f890.tar.gz
gcc-6bfc384f559e448f0f93603a46c41ad9dd34f890.tar.bz2
When doing WPA in incremental link pass down resolution info.
* lto-cgraph.cc (lto_output_node): When doing WPA in incremental link pass down resolution info.
-rw-r--r--gcc/lto-cgraph.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/lto-cgraph.cc b/gcc/lto-cgraph.cc
index 11079b0..ad0005f 100644
--- a/gcc/lto-cgraph.cc
+++ b/gcc/lto-cgraph.cc
@@ -563,7 +563,8 @@ lto_output_node (struct lto_simple_output_block *ob, struct cgraph_node *node,
LDPR_NUM_KNOWN,
/* When doing incremental link, we will get new resolution
info next time we process the file. */
- flag_incremental_link ? LDPR_UNKNOWN : node->resolution);
+ flag_incremental_link == INCREMENTAL_LINK_LTO
+ ? LDPR_UNKNOWN : node->resolution);
bp_pack_value (&bp, node->split_part, 1);
streamer_write_bitpack (&bp);
streamer_write_data_stream (ob->main_stream, section, strlen (section) + 1);