From patchwork Mon Aug 1 08:33:09 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: 329 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6a10:b5d6:b0:2b9:3548:2db5 with SMTP id v22csp2198507pxt; Mon, 1 Aug 2022 01:33:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vPvIXV30iImawW9TRVU9zbW0tsGNUIZ4sfSle6zZ9Gso4EboFw0x4A7bcEvernzqQGlga9 X-Received: by 2002:a17:906:4fc3:b0:72e:eab4:d9d7 with SMTP id i3-20020a1709064fc300b0072eeab4d9d7mr11670033ejw.599.1659342836547; Mon, 01 Aug 2022 01:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659342836; cv=none; d=google.com; s=arc-20160816; b=fQSrgNwFYroF0RTTrkou6l4BiCUuo4R3pCyTj+HVeP5pcQdIHBH2FIpNemeize2xKw 90w3qHWMLxYXwY6Yo8ockqEkplkuOfNcQrl5xDRmrliBpmrMeWiS09OHH06Z+2bUBbTr gNKrIGyviJmFlkJd7zyouGrbzIhb6RDFqsYv5JT4FO3qkyUY9yaWl7kG2msOMWGrQXT+ r45ACTGmF4YswDy1lrFgIFc6/HnMaf6NKBLXr3A6oIm+yPa7nC51xAl3Z+5i+Xspa++L gDQXUuJ88ilLt+nS7eB1mElOZcKOXpVDaJvu0chGUoS4M52uq7yVXD8kWIcyTNDZnND0 sKdg== 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=bjspwgMJtbJi/3kArWzieofvuZDLcMfdUNsYEnr23fE=; b=ESbyenC+eQ1eJjumQvldFNE2lSUwWMSJ8kW1yxWWr4x4rYVonwxVsvzbfsE/xwmgRE hSi32bQCAC2ALgL4NM8U9eIlVSjK1NQFTmMum5trd/2VOjVrB0ukuuVQpDIpeL4xInAq W98dwS0i5TwftA1XWBR/yhoPALr2GN1nZ1ldTYcaJ89/FywqaYZ2hqrGjRy35Eea3wqq crPi02zBV5VwIc6h9BDZle+yCTrEGp/q32CckKZGKqca8a4sV+tzxp1LHxnytpCVgZ5l DEdMZ6QZffTXk+ZvupONvMEf1K05jZtvuO6AyfAgbI2/f6d+XzgmK3yvOZ9ngAD2emvP dmJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=YmCcCCJK; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=G44z09ez; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id sd22-20020a1709076e1600b0071223d9f214si10797851ejc.177.2022.08.01.01.33.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Aug 2022 01:33:56 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=YmCcCCJK; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=G44z09ez; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 2AE4D3857BB5 for ; Mon, 1 Aug 2022 08:33:38 +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 285283858C52 for ; Mon, 1 Aug 2022 08:33:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 285283858C52 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 3628F3F32B for ; Mon, 1 Aug 2022 08:33:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1659342790; 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=bjspwgMJtbJi/3kArWzieofvuZDLcMfdUNsYEnr23fE=; b=YmCcCCJKtLkc/SWUDHmuvOA77TSWpts5SOY+jEfaxqfiXCNuzzMFVrRsEvjropTDly9RBd XEdnfuHn2UVen0+IKi7yM3w4E20E123sNYAhsbDxcuW9zuTAGlwywhHJCyJHfChJrH9TiV wKuJIELx99wHrFLjA/8DKeVkl4hPO0k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1659342790; 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=bjspwgMJtbJi/3kArWzieofvuZDLcMfdUNsYEnr23fE=; b=G44z09eznm5zbgPrDa7VGNdkOUd8icqAL3XLbUPUY8ox92gh+zjKfaUrKPl0mrE6H1RGs2 EYiJFMRHnZPUiTBw== 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 25BF513A72 for ; Mon, 1 Aug 2022 08:33:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id vMQOCMaP52I8LAAAMHmgww (envelope-from ) for ; Mon, 01 Aug 2022 08:33:10 +0000 Message-ID: Date: Mon, 1 Aug 2022 10:33:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH] lto: replace $target with $host in configure.ac [PR106170] To: gcc-patches@gcc.gnu.org Content-Language: en-US X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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?1739947074267926418?= X-GMAIL-MSGID: =?utf-8?q?1739947074267926418?= Pushed as obvious. Martin PR lto/106170 lto-plugin/ChangeLog: * configure.ac: Replace $target with $host. * configure: Regenerate. --- lto-plugin/configure | 2 +- lto-plugin/configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lto-plugin/configure b/lto-plugin/configure index fdb8a5964b4..f165eaeb194 100755 --- a/lto-plugin/configure +++ b/lto-plugin/configure @@ -6015,7 +6015,7 @@ fi use_locking=no ac_lto_plugin_extra_ldflags= -case $target in +case $host in riscv*) # do not use locking as pthread depends on libatomic ;; diff --git a/lto-plugin/configure.ac b/lto-plugin/configure.ac index e69a7bd9ec0..0a7202782ae 100644 --- a/lto-plugin/configure.ac +++ b/lto-plugin/configure.ac @@ -91,7 +91,7 @@ AM_CONDITIONAL(LTO_PLUGIN_USE_SYMVER_SUN, [test "x$lto_plugin_use_symver" = xsun use_locking=no ac_lto_plugin_extra_ldflags= -case $target in +case $host in riscv*) # do not use locking as pthread depends on libatomic ;;