From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2570A15802F for ; Fri, 10 Mar 2023 12:57:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6C859E0827; Fri, 10 Mar 2023 12:57:46 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 53A78E0827 for ; Fri, 10 Mar 2023 12:57:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6FC83340B27 for ; Fri, 10 Mar 2023 12:57:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0948021 for ; Fri, 10 Mar 2023 12:57:44 +0000 (UTC) From: "Mike Pagano" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Pagano" Message-ID: <1678453050.26d009b2414a6db78ba638c98a35d8fa1874665a.mpagano@gentoo> Subject: [gentoo-commits] proj/linux-patches:6.1 commit in: / X-VCS-Repository: proj/linux-patches X-VCS-Files: 0000_README 2940_gcc-plugins-drop-std-gnu-plus-plus-to-fix-GCC-13-build.patch X-VCS-Directories: / X-VCS-Committer: mpagano X-VCS-Committer-Name: Mike Pagano X-VCS-Revision: 26d009b2414a6db78ba638c98a35d8fa1874665a X-VCS-Branch: 6.1 Date: Fri, 10 Mar 2023 12:57:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5ba2726c-92e6-49af-98e1-9e654f651e64 X-Archives-Hash: 8be199acffd6e3a8f1321df13ce481fd commit: 26d009b2414a6db78ba638c98a35d8fa1874665a Author: Mike Pagano gentoo org> AuthorDate: Fri Mar 10 12:57:30 2023 +0000 Commit: Mike Pagano gentoo org> CommitDate: Fri Mar 10 12:57:30 2023 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=26d009b2 Remove redundant patch Removed: 2940_gcc-plugins-drop-std-gnu-plus-plus-to-fix-GCC-13-build.patch Signed-off-by: Mike Pagano gentoo.org> 0000_README | 4 -- ...rop-std-gnu-plus-plus-to-fix-GCC-13-build.patch | 46 ---------------------- 2 files changed, 50 deletions(-) diff --git a/0000_README b/0000_README index f2ba9399..aab72b3b 100644 --- a/0000_README +++ b/0000_README @@ -139,10 +139,6 @@ Patch: 2930_gcc-plugins-Reorg-gimple-incs-for-gcc-13.patch From: https://lore.kernel.org/lkml/mhng-8bc81919-3023-4d72-bd44-2443606b4fd7@palmer-ri-x1c9a/T/ Desc: gcc-plugins: Reorganize gimple includes for GCC 13 -Patch: 2940_gcc-plugins-drop-std-gnu-plus-plus-to-fix-GCC-13-build.patch -From: https://lore.kernel.org/all/20230201230009.2252783-1-sam@gentoo.org/ -Desc: gcc-plugins: drop -std=gnu++11 to fix GCC 13 build - Patch: 3000_Support-printing-firmware-info.patch From: https://bugs.gentoo.org/732852 Desc: Print firmware info (Reqs CONFIG_GENTOO_PRINT_FIRMWARE_INFO). Thanks to Georgy Yakovlev diff --git a/2940_gcc-plugins-drop-std-gnu-plus-plus-to-fix-GCC-13-build.patch b/2940_gcc-plugins-drop-std-gnu-plus-plus-to-fix-GCC-13-build.patch deleted file mode 100644 index 55797805..00000000 --- a/2940_gcc-plugins-drop-std-gnu-plus-plus-to-fix-GCC-13-build.patch +++ /dev/null @@ -1,46 +0,0 @@ -From 5a6b64adc18d9adfb497a529ff004d59b6df151f Mon Sep 17 00:00:00 2001 -From: Sam James -Date: Wed, 1 Feb 2023 23:00:09 +0000 -Subject: gcc-plugins: drop -std=gnu++11 to fix GCC 13 build - -The latest GCC 13 snapshot (13.0.1 20230129) gives the following: -``` -cc1: error: cannot load plugin ./scripts/gcc-plugins/randomize_layout_plugin.so - :./scripts/gcc-plugins/randomize_layout_plugin.so: undefined symbol: tree_code_type -``` - -This ends up being because of https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=b0241ce6e37031 -upstream in GCC which changes the visibility of some types used by the kernel's -plugin infrastructure like tree_code_type. - -After discussion with the GCC folks, we found that the kernel needs to be building -plugins with the same flags used to build GCC - and GCC defaults to gnu++17 -right now. The minimum GCC version needed to build the kernel is GCC 5.1 -and GCC 5.1 already defaults to gnu++14 anyway, so just drop the flag, as -all GCCs that could be used to build GCC already default to an acceptable -version which was >= the version we forced via flags until now. - -Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108634 -Signed-off-by: Sam James -Signed-off-by: Kees Cook -Link: https://lore.kernel.org/r/20230201230009.2252783-1-sam@gentoo.org ---- - scripts/gcc-plugins/Makefile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile -index b34d11e226366..320afd3cf8e82 100644 ---- a/scripts/gcc-plugins/Makefile -+++ b/scripts/gcc-plugins/Makefile -@@ -29,7 +29,7 @@ GCC_PLUGINS_DIR = $(shell $(CC) -print-file-name=plugin) - plugin_cxxflags = -Wp,-MMD,$(depfile) $(KBUILD_HOSTCXXFLAGS) -fPIC \ - -include $(srctree)/include/linux/compiler-version.h \ - -DPLUGIN_VERSION=$(call stringify,$(KERNELVERSION)) \ -- -I $(GCC_PLUGINS_DIR)/include -I $(obj) -std=gnu++11 \ -+ -I $(GCC_PLUGINS_DIR)/include -I $(obj) \ - -fno-rtti -fno-exceptions -fasynchronous-unwind-tables \ - -ggdb -Wno-narrowing -Wno-unused-variable \ - -Wno-format-diag --- -cgit -