From: Jan Hubicka <hubicka@ucw.cz>
To: gcc-patches@gcc.gnu.org
Subject: Fix resolution streaming with incremental linking
Date: Fri, 25 Nov 2022 15:10:56 +0100 [thread overview]
Message-ID: <Y4DM8FVKsEnXonyu@kam.mff.cuni.cz> (raw)
Hi,
this patch fixes streaming of resolution info when flag_incremental_link
== INCREMENTAL_LINK_NOLTO. Here we want to stream the info from WPA to
ltrans as usual.
Bootstrapped/regtested x86_64-linux, tested with kernel LTO builds.
Plan to commit it later today.
Honza
* gcc/lto-cgraph.cc (lto_output_node): Only drop resolution info when
flag_incremental_link === INCREMENTAL_LINK_LTO.
diff --git a/gcc/lto-cgraph.cc b/gcc/lto-cgraph.cc
index 350195d86db..ff7669d0c4b 100644
--- a/gcc/lto-cgraph.cc
+++ b/gcc/lto-cgraph.cc
@@ -563,7 +563,7 @@ 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);
reply other threads:[~2022-11-25 14:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y4DM8FVKsEnXonyu@kam.mff.cuni.cz \
--to=hubicka@ucw.cz \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).