From patchwork Thu Oct 27 08:30:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 11644 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp103940wru; Thu, 27 Oct 2022 01:31:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6/sDM5hs+tahCJ+7mEOCRUUjROCjDRhxYYpv+Oemk3LqQ2MjiRpYYv0MmkXup5jEtFbQCh X-Received: by 2002:a17:906:9b87:b0:733:1795:2855 with SMTP id dd7-20020a1709069b8700b0073317952855mr41337959ejc.156.1666859485120; Thu, 27 Oct 2022 01:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666859485; cv=none; d=google.com; s=arc-20160816; b=L0tqG3fQ/afvB1WdhJgGs+jUmdpMhosBGHomI04YWvoRxmpQzWAVfeHf1kBiLdEPwf hiqlVc4Gp6ebThyDX+ehBcPo0ZAqK+F4lTzt4XuEeyFumn1tCk6eenI5YPH6LsWepeu+ FjQPxG5GcPVEhQEijuw6R0UDkbK1yjGKmbmXeqxm2CfNBk7LlD/3CR6jC1AfGGQfkYI8 cutOkLf97XPsUCHoSav3246vlCL7USM68DW0mJ1n5GfEEEgIwuUX9im6YpjxhcTydiNX tWIRHZSyX75paRUpQe1E6NEIX5stkIBSkIc3urn2sU4Z0RhZZx/wimcAMORh22Tltbfr qFwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-language:to:subject:from:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature:dmarc-filter:delivered-to; bh=isV0P2hvJb7pIDmQ6YJtLNO4ATtRWbfsYuG9ewtR1mw=; b=kSy/5fKkk+tQe6LKT8aaHIok8rW8bHMACTU7XLErIgvokNaisYGwCUmi/01QuH+HXg Knd+gVSe0vTZl6oJvqTh83Ytg8/9LSArzrsZyjIuYn1fBTzV3rf43Cy47mYZT2l7aRUQ uENBS4AgYviRBG5u8iXGVzP0548bNdPl4cA4aekGyrfRFcyBYktdHO9ZvwiE0+ibFw06 QsMY1/CuBxI9caqVK1f0hRuck48Jf1egCg1kUl5TAvgR1eISr1kXw3EaE7dCRm4WvEVk l/zffnEpEnUhwkhlCb16eAShdPjYs5/w40LKM+I4y3tn+WH5FI5qhRS/lfGrsIvBOpR1 msow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Tz2hz54W; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="/v6TYcEZ"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id cw12-20020a170906478c00b007882926848bsi948069ejc.818.2022.10.27.01.31.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 01:31:25 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Tz2hz54W; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="/v6TYcEZ"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EE2753829BD7 for ; Thu, 27 Oct 2022 08:31:23 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id 94B75385842F for ; Thu, 27 Oct 2022 08:30:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 94B75385842F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 73B982241F for ; Thu, 27 Oct 2022 08:30:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1666859432; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=isV0P2hvJb7pIDmQ6YJtLNO4ATtRWbfsYuG9ewtR1mw=; b=Tz2hz54WXWyxo2+GqJuJXwHgv6/mlOmwltgE3dJfMnIEILLRJP5+H/ZzmNsUZETo9B55On i0+PPiI/8h9J9c8r3tlpYW0snmXXkOe7jY8VchRYjQzmPg9eLsIbQbFHQC0TdyyiGPoscW 9Hh51OJoFBQyIXNAlCRchno6BqzaGDQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1666859432; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=isV0P2hvJb7pIDmQ6YJtLNO4ATtRWbfsYuG9ewtR1mw=; b=/v6TYcEZXOT+iioDeWlfNp0WUBcRg6v69w4kB3cs6gjneGwJgRecQZf9kMbzm93abAmSVu 5QnmJItdZGqEZvBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 65226134CA for ; Thu, 27 Oct 2022 08:30:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 2z6mF6hBWmNoQgAAMHmgww (envelope-from ) for ; Thu, 27 Oct 2022 08:30:32 +0000 Message-ID: Date: Thu, 27 Oct 2022 10:30:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH (pushed)] lto: do not load LTO stream for aliases [PR107418] To: gcc-patches@gcc.gnu.org Content-Language: en-US X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747828851361237323?= X-GMAIL-MSGID: =?utf-8?q?1747828851361237323?= It's the similar condition we use in lto-dump. Pushed as obvious. MArtin PR lto/107418 gcc/lto/ChangeLog: * lto-dump.cc (lto_main): Do not load LTO stream for aliases. --- gcc/lto/lto-dump.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/lto/lto-dump.cc b/gcc/lto/lto-dump.cc index f3d852df51f..cb9782722a9 100644 --- a/gcc/lto/lto-dump.cc +++ b/gcc/lto/lto-dump.cc @@ -347,7 +347,8 @@ lto_main (void) /* Dump gimple statement statistics. */ cgraph_node *node; FOR_EACH_DEFINED_FUNCTION (node) - node->get_untransformed_body (); + if (!node->alias) + node->get_untransformed_body (); if (!GATHER_STATISTICS) warning_at (input_location, 0, "Not configured with "