Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp14101055rwd; Sat, 24 Jun 2023 12:04:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Leo+nBWNqWr9I01n4/t4IgHau1Y7/P62oGiwTQQWZPgOv7OooYoJjhhHQukYFPeRkhEXk X-Received: by 2002:a05:6a21:7881:b0:121:ef3f:ed0b with SMTP id bf1-20020a056a21788100b00121ef3fed0bmr15810010pzc.60.1687633453230; Sat, 24 Jun 2023 12:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687633453; cv=none; d=google.com; s=arc-20160816; b=GwXuVNCHMQCYRzuSBMu66wI9LEqZKShMcDrWM/vFgAvQUU/vCcp9uVj20DuxfSrOX6 1KLMVQQPKI326bJNoZzCcEBTMgBXjVYAxCeKHp3HgmGPvHPK7Mq4COSQxNu4CQmpaw7x p7+Cr2R6VqSBA5d2EPrp0Evi/aHSiLRZXM8dnjwL8h+WVllEKpFI1m/3wLcE8O/ijPec yx+lvqUbbpmP0zXL9r12ZeSi9GEnhEJmKf7zIhVBvlZ5QhgHFFq79nZzKuEnrh4aEM91 4pACOzrIFiJCquELJ0XXFgGg0XduQ5usZaLuzqo9YIlY8NgO1YGVYV361V4YcgxYM7Im ouDA== 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=XnRGXc2VG4R0vV9nAL733ZgR7DbGa57h8V11oXQdMUDHaes6lnL4Z5B/xfQ3lXj1GM F/1nfJ/ZkAJYINpFzadOMFOFGBosNd+jp5z50Q/FD15QL2SobakH4iP9HmO8owvBr6yQ OrfZXa5+P1rYzUyelN0Oty+vicxjx3//y/RVFwR0a/1/SVBNngDjekwskYR0BH5ah6Zc jk/mo5aNOQwBpiQXyamvmIrbrDrDhodDCDp4Vr8CxtNIR3mxpMrzswJ3JGIDoC+kuPfZ BFvHRc3jf6MbDaRWyPZTZAyz5SzxMv0hgHaxurB0f1Yve//pHFGgNbQqoJ0rHbpwDMlk tJuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=mLA1oLCk; 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 b1-20020a630c01000000b0054fd670e85fsi1915433pgl.233.2023.06.24.12.03.48; Sat, 24 Jun 2023 12:04:13 -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=mLA1oLCk; 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 S232332AbjFXSm7 (ORCPT + 99 others); Sat, 24 Jun 2023 14:42:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233263AbjFXSmw (ORCPT ); Sat, 24 Jun 2023 14:42:52 -0400 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FFC51BFC; Sat, 24 Jun 2023 11:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1687632144; bh=f9UodCze65MUHVrQj48fTjyEJzJh37WtI+PaqIa5H+k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mLA1oLCkI9h4Jq9YMA+9CG3mDdmdq7a46L7WIZHxgJXuoymtG8dH5DH0h/jg5IPRo j5VIDnrzDGdie8ylPLOraxE0gpp1sF5lbn8/N9v7XisY4uDX4w2W7l3Jsjn0mIIgdQ oZ8bqTFCGFacslqv2DR8M5DAiWVKBMuvkaCZzbkE= 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 3595D605E5; Sun, 25 Jun 2023 02:42:24 +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 v2 8/9] LoongArch: Mark Clang LTO as working Date: Sun, 25 Jun 2023 02:40:54 +0800 Message-Id: <20230624184055.3000636-9-kernel@xen0n.name> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230624184055.3000636-1-kernel@xen0n.name> References: <20230624184055.3000636-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,URIBL_BLOCKED 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