From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1075) id 3A52F3858425; Wed, 21 Dec 2022 11:44:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A52F3858425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671623080; bh=p4Y0Gx0qmLeMgcuHSWNOaxI3H73/54d6h/JVc43L5HM=; h=From:To:Subject:Date:From; b=oPRsjC3x0ZVbfsApneEdqUpJK/LgrMmsnPFtLRglA3PzFR/LVqfCE8D66LkhI7Uu4 bh9kEWHm66ywLOLMuQ0vajrmZHyu+P/71Jg3d1z/cfBbfrpw8WpgtuXATiALylIBM7 JqQaW6djkvgEpMJF6K0CiAqQvN/Lp+wywhtE0FdI= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jan Hubicka To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-4826] When doing WPA in incremental link pass down resolution info. X-Act-Checkin: gcc X-Git-Author: Jan Hubicka X-Git-Refname: refs/heads/master X-Git-Oldrev: 39ebd3a9f5cb8555bcb0422086e646ce833028a4 X-Git-Newrev: 6bfc384f559e448f0f93603a46c41ad9dd34f890 Message-Id: <20221221114440.3A52F3858425@sourceware.org> Date: Wed, 21 Dec 2022 11:44:40 +0000 (GMT) List-Id: https://gcc.gnu.org/g:6bfc384f559e448f0f93603a46c41ad9dd34f890 commit r13-4826-g6bfc384f559e448f0f93603a46c41ad9dd34f890 Author: Jan Hubicka Date: Wed Dec 21 12:44:11 2022 +0100 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. Diff: --- gcc/lto-cgraph.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/lto-cgraph.cc b/gcc/lto-cgraph.cc index 11079b0f0f0..ad0005f01d2 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);