From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) by sourceware.org (Postfix) with ESMTPS id BB69138532DA for ; Fri, 25 Nov 2022 14:10:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BB69138532DA Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=ucw.cz Authentication-Results: sourceware.org; spf=none smtp.mailfrom=kam.mff.cuni.cz Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 6B271284AE4; Fri, 25 Nov 2022 15:10:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1669385456; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=E1dC6bvnPxF9IVfbiHzv/7u15RtHOBt92R9dj5Mb+f4=; b=hwH7s9t26Nmd6nVGpAWC8JijF7Ghlz57u4V4mJK5ByYGfWGi2WjWEFrVhXeGfYpIktfzy7 iuZU8U2d77od2tm5ua0Sh55ijrzvh9e3+CW81oKaws+SSN1aVEU7S7hGowzs9MbtJiJUq1 kMH/KdFTb9F8UWHmifdWPWSbW3fc7kI= Date: Fri, 25 Nov 2022 15:10:56 +0100 From: Jan Hubicka To: gcc-patches@gcc.gnu.org Subject: Fix resolution streaming with incremental linking Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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);