Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5398330rwb; Mon, 14 Nov 2022 04:13:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf5QDjaKOtYHaWKlOLqM3uvmx2wgokGFn8cc3jjmexoecHmhFcjY9RLeL3QbrEU6Z8hejacB X-Received: by 2002:a17:902:eac6:b0:187:3932:6422 with SMTP id p6-20020a170902eac600b0018739326422mr13175080pld.135.1668428019820; Mon, 14 Nov 2022 04:13:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668428019; cv=none; d=google.com; s=arc-20160816; b=kCjOdTUnw37WtZF8M9JyhPbCyAA79qdPb1jv2lojldr7lyRGi6qEu1P+ZktzMGmgHg 90NRGOxedpsb60zEKzAMhhu025xA3iB9vLU4y/t2oeWPhOfXX3kZ32VsHfHW3NSEGUNQ V51tPe9QvHMRNbHuBJKykhO0D0KBU7ImJqhqdV5GVa8baEGrc4RnFPTAi1/j/0x7P2ZN 3WAVHkBKACBh5o0063nXOsqSY0sqtCjBYPYQpkqq7c21aIdaxXZFOqSgoHDKIxF/J2aC N1jRhZ9JCjySWcGwvjoJal43mHitHHyd56T9B7kb9tNr/XbJHmeB1rJGWBhc4hpKKims s7+w== 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=DHJEZ1hkti3eVHDoUOYKZ242N/C17Ji6rQfiOtGS9UQ=; b=My8nPfh8TG678ugVKD+wFJG0iYOohffPr5fCag+M9GjCVpQkeZ9wUoYTH/EGF+T0CP Bxg9KYxutzWRdog6IIJouJG4ELAP10tQDXRMQgb8rU+r7SHm8m6VE4aHURwMt2AU3kST mo0z989oU8J5o9K17FVVXzi8Oo/ZY2kKM0m3ginCn++OO3dYdVjbLh4XBom+KXaG20Hq u7qi+Z3EOv5ctQa2NqkYor+Y0UZ0YKxq83UZOipew0e80aawYAq0tI2h3hJLKWbubUCP XN5QiPCIF33+tPZ8xJeCW0VECTSKgNKsHnFdYCxyD85mX4jYbyp85Gf3AGakC1EqmQrn DkaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MFQ4rwMo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j19-20020a634a53000000b00473e4d2c9e4si9382258pgl.218.2022.11.14.04.13.26; Mon, 14 Nov 2022 04:13:39 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=MFQ4rwMo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236827AbiKNLtV (ORCPT + 88 others); Mon, 14 Nov 2022 06:49:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236888AbiKNLsr (ORCPT ); Mon, 14 Nov 2022 06:48:47 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA56226AEF for ; Mon, 14 Nov 2022 03:45:50 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7120261089 for ; Mon, 14 Nov 2022 11:45:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1C12C433D6; Mon, 14 Nov 2022 11:45:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668426349; bh=A+tvGmiPkdD/tiJtZ2PygCRidinCj9dZAztxEalKFws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MFQ4rwMoo91PDbtGRAhfNHD2tB2gdI6kaKYYhll+WgT0N9ClgCLrz1G7eSJEKm32N 7vAm+qRyLv4yj+Av9FVbav/+u2qCr3OoSa3T1c5qz8OFUar6/MuEi7g0KSLHiuTyom aZEc1+di2HwETuEHaTap3kRcwEPi6pYFPEG+SFkJsz4qwF33JpqqHpdaK4Yo8UU8Kl yDPm8yHfi717VqpaDrINO58xEtRnByReq+wr7l5ohVzyDcjPedqMTXvB7US2QTjAWC uUVgPeNxkPhQDQI5j1q+leAY0OJE3PN+0+Hzcn/7JvukNQyT4L/yFfV/Ug926FErkQ NCWmmkHRry9kQ== From: "Jiri Slaby (SUSE)" To: linux-kernel@vger.kernel.org Cc: Andi Kleen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , x86@kernel.org, Martin Liska , Jiri Slaby Subject: [PATCH 46/46] x86, lto: Finally enable gcc LTO for x86 Date: Mon, 14 Nov 2022 12:43:44 +0100 Message-Id: <20221114114344.18650-47-jirislaby@kernel.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114114344.18650-1-jirislaby@kernel.org> References: <20221114114344.18650-1-jirislaby@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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: Andi Kleen Now that everything is in place, allow gcc LTO for the x86 build. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: "H. Peter Anvin" Cc: x86@kernel.org Signed-off-by: Andi Kleen Signed-off-by: Martin Liska Signed-off-by: Jiri Slaby --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 6455d843d559..2c96facf4a42 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -112,6 +112,7 @@ config X86 select ARCH_USES_CFI_TRAPS if X86_64 && CFI_CLANG select ARCH_SUPPORTS_LTO_CLANG select ARCH_SUPPORTS_LTO_CLANG_THIN + select ARCH_SUPPORTS_LTO_GCC select ARCH_USE_BUILTIN_BSWAP select ARCH_USE_MEMTEST select ARCH_USE_QUEUED_RWLOCKS -- 2.38.1