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 46FFD158086 for ; Thu, 4 Nov 2021 11:23:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 78951E08F4; Thu, 4 Nov 2021 11:23:56 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D4F5DE08F4 for ; Thu, 4 Nov 2021 11:23:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9C6EB342C3B for ; Thu, 4 Nov 2021 11:23:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 04CDD83 for ; Thu, 4 Nov 2021 11:23:53 +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: <1636024926.806549f8ef327ca616f38eaa6549eac8e20c16fb.mpagano@gentoo> Subject: [gentoo-commits] proj/linux-patches:5.4 commit in: / X-VCS-Repository: proj/linux-patches X-VCS-Files: 2910_fix-gcc-detection-method.patch X-VCS-Directories: / X-VCS-Committer: mpagano X-VCS-Committer-Name: Mike Pagano X-VCS-Revision: 806549f8ef327ca616f38eaa6549eac8e20c16fb X-VCS-Branch: 5.4 Date: Thu, 4 Nov 2021 11:23:53 +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: 0988afa3-101e-495f-a8ef-e93706d5eaa8 X-Archives-Hash: 9e4a95b29637bb43bc3ba1301abdaa8f commit: 806549f8ef327ca616f38eaa6549eac8e20c16fb Author: Mike Pagano gentoo org> AuthorDate: Thu Nov 4 11:22:06 2021 +0000 Commit: Mike Pagano gentoo org> CommitDate: Thu Nov 4 11:22:06 2021 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=806549f8 Upd gcc ver detect patch.Make visible GCC_PLUGINS. Thanks to Kerin Millar. Signed-off-by: Mike Pagano gentoo.org> 2910_fix-gcc-detection-method.patch | 83 ++++++++++++++++++++++++++++++------- 1 file changed, 68 insertions(+), 15 deletions(-) diff --git a/2910_fix-gcc-detection-method.patch b/2910_fix-gcc-detection-method.patch index d7ed901..844b411 100644 --- a/2910_fix-gcc-detection-method.patch +++ b/2910_fix-gcc-detection-method.patch @@ -1,5 +1,21 @@ ---- a/scripts/gcc-plugin.sh 2021-09-23 10:18:55.315793245 -0400 -+++ /dev/null 2021-10-27 08:48:41.750968153 -0400 +From 106e2bb6f90409ca0edc77d9b7eba376d1e85876 Mon Sep 17 00:00:00 2001 +From: Kerin Millar +Date: Thu, 4 Nov 2021 08:44:33 +0000 +Subject: [PATCH] https://bugs.gentoo.org/814200#c20 + +Signed-off-by: Kerin Millar +--- + scripts/gcc-plugin.sh | 66 ------------------------------------ + scripts/gcc-plugins/Kconfig | 11 ++---- + scripts/gcc-plugins/Makefile | 19 ++++------- + 3 files changed, 8 insertions(+), 88 deletions(-) + delete mode 100755 scripts/gcc-plugin.sh + +diff --git a/scripts/gcc-plugin.sh b/scripts/gcc-plugin.sh +deleted file mode 100755 +index d3caefe53eab..000000000000 +--- a/scripts/gcc-plugin.sh ++++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/sh -# SPDX-License-Identifier: GPL-2.0 @@ -67,9 +83,24 @@ - echo "${plugincc}" >&2 -fi -exit 1 ---- a/scripts/gcc-plugins/Kconfig 2021-09-23 10:15:50.898216868 -0400 -+++ b/scripts/gcc-plugins/Kconfig 2021-10-27 11:44:35.700620974 -0400 -@@ -17,7 +17,8 @@ config HAVE_GCC_PLUGINS +diff --git a/scripts/gcc-plugins/Kconfig b/scripts/gcc-plugins/Kconfig +index e3569543bdac..162f17ff01d3 100644 +--- a/scripts/gcc-plugins/Kconfig ++++ b/scripts/gcc-plugins/Kconfig +@@ -1,12 +1,4 @@ + # SPDX-License-Identifier: GPL-2.0-only +-preferred-plugin-hostcc := $(if-success,[ $(gcc-version) -ge 40800 ],$(HOSTCXX),$(HOSTCC)) +- +-config PLUGIN_HOSTCC +- string +- default "$(shell,$(srctree)/scripts/gcc-plugin.sh "$(preferred-plugin-hostcc)" "$(HOSTCXX)" "$(CC)")" if CC_IS_GCC +- help +- Host compiler used to build GCC plugins. This can be $(HOSTCXX), +- $(HOSTCC), or a null string if GCC plugin is unsupported. + + config HAVE_GCC_PLUGINS + bool +@@ -17,7 +9,8 @@ config HAVE_GCC_PLUGINS menuconfig GCC_PLUGINS bool "GCC plugins" depends on HAVE_GCC_PLUGINS @@ -79,14 +110,36 @@ default y help GCC plugins are loadable modules that provide extra features to the ---- a/scripts/gcc-plugins/Makefile 2021-10-27 10:58:03.960272437 -0400 -+++ b/scripts/gcc-plugins/Makefile 2021-10-27 10:59:37.313786319 -0400 -@@ -8,7 +8,7 @@ ifeq ($(PLUGINCC),$(HOSTCC)) - export HOST_EXTRACFLAGS - else - HOSTLIBS := hostcxxlibs +diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile +index 9e95862f2788..e07236375248 100644 +--- a/scripts/gcc-plugins/Makefile ++++ b/scripts/gcc-plugins/Makefile +@@ -1,19 +1,12 @@ + # SPDX-License-Identifier: GPL-2.0 +-PLUGINCC := $(CONFIG_PLUGIN_HOSTCC:"%"=%) + GCC_PLUGINS_DIR := $(shell $(CC) -print-file-name=plugin) + +-ifeq ($(PLUGINCC),$(HOSTCC)) +- HOSTLIBS := hostlibs +- HOST_EXTRACFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu99 -ggdb +- export HOST_EXTRACFLAGS +-else +- HOSTLIBS := hostcxxlibs - HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++98 -fno-rtti -+ HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++11 -fno-rtti - HOST_EXTRACXXFLAGS += -fno-exceptions -fasynchronous-unwind-tables -ggdb - HOST_EXTRACXXFLAGS += -Wno-narrowing -Wno-unused-variable - HOST_EXTRACXXFLAGS += -Wno-format-diag +- HOST_EXTRACXXFLAGS += -fno-exceptions -fasynchronous-unwind-tables -ggdb +- HOST_EXTRACXXFLAGS += -Wno-narrowing -Wno-unused-variable +- HOST_EXTRACXXFLAGS += -Wno-format-diag +- export HOST_EXTRACXXFLAGS +-endif ++HOSTLIBS := hostcxxlibs ++HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++11 -fno-rtti ++HOST_EXTRACXXFLAGS += -fno-exceptions -fasynchronous-unwind-tables -ggdb ++HOST_EXTRACXXFLAGS += -Wno-narrowing -Wno-unused-variable ++HOST_EXTRACXXFLAGS += -Wno-format-diag ++export HOST_EXTRACXXFLAGS + + $(obj)/randomize_layout_plugin.o: $(objtree)/$(obj)/randomize_layout_seed.h + quiet_cmd_create_randomize_layout_seed = GENSEED $@ +-- +2.33.1 +