Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp14715068rwd; Sun, 25 Jun 2023 03:04:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7hy7raPxB2Lmydn4dffOwE6+hY4nffymBOvFG3IPZR1iaWTUr0g//lIVF7euSDEn+SJu+3 X-Received: by 2002:a9d:66cc:0:b0:6b7:3c2c:48ad with SMTP id t12-20020a9d66cc000000b006b73c2c48admr2551963otm.25.1687687475398; Sun, 25 Jun 2023 03:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687687475; cv=none; d=google.com; s=arc-20160816; b=ZVRxvCMqzKGgotnBkJzOZCkBW8xNgl7YJKFgiPZ6/J0oMhsp3CwX38VOB4bD9+dEpb OzqA/MSrX02gIySpIg7LEZy7k+XYjMuKOxhngey8qHvDcHDO46oyMU6FfQSGK6x8KwPC SPbNxba/EqUiWB+uuaFy9b8h5g81xTXn2yExdL7muVYSfHSW2U2sy1WwhQjsj6jCvavF hl4rfz0A8Yj31NX1KwAUgVCHU87TgnfjdQaYNvEDsBRZm3ibVcw0RA88YDtohPnYNx/a UhRmqB6s45vqaCMt7wUayK8OeTwseHNhf01SLOOSm3lV+7I01tcXfm103P3/JL854r2o A3TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IMd/SUKmlWVpC4P0XrhitOnqAd0zXMtWnK5o0dkm3sA=; fh=cOkhPHs+QQbxcIFG9XL5O7NpzAYOWU9SlXvAO44hRCk=; b=cucKYUXaot6AgexYTKFFwPV3zErh7VNWCRCyBL9q/5cEJVy4mELE/U8MEY4Fuu3yYb RdSH5sSXsCvkQyhHb/6opvK5opHHTC8OLkdLFwqEij6/9YUfcsB5tjKnlwWRgyoUKnFg bVl+TCg+mYDH05h6sG2YiOyZCPC86IaLr//ucKFYiagHpTQvKAjPbzlkS04q/RuyWH2+ mLELIpPlAfVtX/Gre7XWuIDGPoLkCSXkOyvUjD5RCouKnCN2drEJUR0Ox4IzfUBLFsjj vOcfT2z/ry5LHJ17lHfxbmQZt2o1Bgbvqvx9gpsJzLZZeee5uIXS7ma2dxy70qrC1K0N s+Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=fHnuVqWN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r12-20020a62e40c000000b00677429ef6a2si29399pfh.186.2023.06.25.03.04.24; Sun, 25 Jun 2023 03:04:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=fHnuVqWN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232041AbjFYJ61 (ORCPT + 99 others); Sun, 25 Jun 2023 05:58:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231967AbjFYJ6L (ORCPT ); Sun, 25 Jun 2023 05:58:11 -0400 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F41721B9; Sun, 25 Jun 2023 02:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1687687078; bh=f9UodCze65MUHVrQj48fTjyEJzJh37WtI+PaqIa5H+k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fHnuVqWNo63965Jjvx1FcKAfbuDWLk9u8rMHzZOqUMYp5ttLIAg6H/vKIkVK/8t4N O9bicTpW8khT3DY2zPhZKiMqzyh3HXoigWp7s3dWVNjkGhrCVjDq+0oJiFSRGKXIes D5DMQjNia5R0U3HSoQSfbttFeEFZafzyY5vDOnak= Received: from ld50.lan (unknown [101.88.25.181]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 5E3B060164; Sun, 25 Jun 2023 17:57:58 +0800 (CST) From: WANG Xuerui To: Huacai Chen Cc: WANG Rui , Xi Ruoyao , loongarch@lists.linux.dev, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, WANG Xuerui , Nick Desaulniers Subject: [PATCH v3 7/8] LoongArch: Mark Clang LTO as working Date: Sun, 25 Jun 2023 17:56:43 +0800 Message-Id: <20230625095644.3156349-8-kernel@xen0n.name> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230625095644.3156349-1-kernel@xen0n.name> References: <20230625095644.3156349-1-kernel@xen0n.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: WANG Xuerui Confirmed working with QEMU system emulation. Signed-off-by: WANG Xuerui Acked-by: Nick Desaulniers --- arch/loongarch/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index ac3564935281..ed9a148cdcde 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -51,6 +51,8 @@ config LOONGARCH select ARCH_SUPPORTS_ACPI select ARCH_SUPPORTS_ATOMIC_RMW select ARCH_SUPPORTS_HUGETLBFS + select ARCH_SUPPORTS_LTO_CLANG + select ARCH_SUPPORTS_LTO_CLANG_THIN select ARCH_SUPPORTS_NUMA_BALANCING select ARCH_USE_BUILTIN_BSWAP select ARCH_USE_CMPXCHG_LOCKREF -- 2.40.0