From patchwork Mon Nov 14 11:43:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 19773 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2098707wru; Mon, 14 Nov 2022 03:50:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf48F6QIQUz3Zk4gpKQxiD7VL1q3Ubn703OWzopGbkTwg0fl2smM+tspisV9hWEPCuKJVY9q X-Received: by 2002:a05:6402:2cf:b0:467:69a4:afe1 with SMTP id b15-20020a05640202cf00b0046769a4afe1mr10342753edx.332.1668426642409; Mon, 14 Nov 2022 03:50:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668426642; cv=none; d=google.com; s=arc-20160816; b=O4wVWt+n1IROyGgQQta7D+GSeJmYLaoYjJ/mBx0UddofjF6C6yKMxhck1pocNuKZto +kocIXYD3RszGhm9SbBQMXPqkcINkAwszg2fW9gkdyxSwSnxsjiwzHWrdY0avtaDm3kw LOkUFFmZ+OdVHYcFYeRxWpaojVsMqaxoupxIUSh2UHTVhPoMR0f/l9EzydLxLOE914g4 7gpJzxH2le+4Ab5bAwPEZRUM1N+P2ON5Xgp6B0xFnPlS3kCV6ETZ3u30ryS5PjkDOxR5 LETfUkwkjnpS8PbBHb8Y/KzvGuofdRUREBnChF/3SLWBVXo1uvYxktXjU25zNYhSuMkf cmNg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd6-20020a1709076e0600b007adb6459e64si8951836ejc.862.2022.11.14.03.50.17; Mon, 14 Nov 2022 03:50:42 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749472134797663096?= X-GMAIL-MSGID: =?utf-8?q?1749472134797663096?= 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