Received: by 10.223.185.116 with SMTP id b49csp1045991wrg; Fri, 16 Feb 2018 11:24:48 -0800 (PST) X-Google-Smtp-Source: AH8x226L+dTxZBPpF4TsI36u00yjKvHIwqd+tCAOo33njKzFxA+ggdGyRfnZ09llVrLeEUNNszF6 X-Received: by 10.98.69.93 with SMTP id s90mr7132141pfa.31.1518809088188; Fri, 16 Feb 2018 11:24:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518809088; cv=none; d=google.com; s=arc-20160816; b=HrX+v9YKMMGwzN6FQ0OGXNlcbtES9WOv83CFv39XRzXolD9KlTV8r29ZQUDxODQZtd SCTAHVf578TWwXmyv3pGN0/y5h/QsMI/poI0RnLST4jo7BYrqyTX6ksIjH8yLFE7ERqx b8y/bGfdD85jAbANoW9ccc2WMOhYmmGpy7lJ8mljfogJKBgaCtTuElQEu/x9oPKXDOZl Mu3ORwulUPGT38yIlMgmEvr4aA5CXtLJPFJvjmAqLLR3MD6+h0KZNu4W1Ph2bGrJdyU4 c2BD9bAhjYpe4hvx7R1Q7+GwDo5s3mw1m544uJgIypzvQwyigIyk3iM/HjMQG39jdEtZ 5NQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=3HaRTIPTfu2Ud13Hd7mnMb61C3Dpjxmhm9k9d1jW2xQ=; b=ju5x+8HdmI79p8VdbA139Ed0HzaUl3LFqwBMy3uVhZrZb+sLeRC3YZGvOUPY9DHIFT LSn7QZpsRFNql1qI/1YAGpx8iryvN9e5gelD+CAnxEax5koXsCXzk3vz3bL6t/X4xoth zJv3jLU0xVvEyAUNZwwtS522QyRrx1XPINqaF0uuubN1IM6fQflgQPcDWmgh05m/jTx4 SdZR4lHRYEvJfU9Hfu/JBDB0Jf3vk4FxrAU/YZgEu5Ok+T8MnZPyctWspPlPk/v4gAlO /bURkDVNRJ312VTE8hA+mUnPhmO3x+nFv4tFAOF7mtHoTHYsvJ85YtV9/3bTzvEJD4KY hpcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=cE5poFrQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 88-v6si4655520pla.342.2018.02.16.11.24.33; Fri, 16 Feb 2018 11:24:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=cE5poFrQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753509AbeBPSnI (ORCPT + 99 others); Fri, 16 Feb 2018 13:43:08 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:59556 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753280AbeBPSnF (ORCPT ); Fri, 16 Feb 2018 13:43:05 -0500 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-07.nifty.com with ESMTP id w1GIdBTO013418; Sat, 17 Feb 2018 03:39:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com w1GIdBTO013418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1518806373; bh=3HaRTIPTfu2Ud13Hd7mnMb61C3Dpjxmhm9k9d1jW2xQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cE5poFrQ7gWR8lRI/On8FoVrFTuA9fDngRc2g/1h6Qei64yEkmPlsbj/kO37o2T9p GQl2TRSbqac5Xdt+zAn4hJZK1vtuzcvxYi4EjBaZQQjffRfIVabjbrDasIM+usJEbw G64PkGliTFWWCWUQ6XGyA2Rd9RcfQI33xEwcIL//LltwLlMFaRWdoKteiPhFgFy4MH pxV4WmJUJFJhUkLn2W5cLodzC7Xc0AbuPK6KNgWTmn6kG/n5vyhRNX8/doeV1sLE+8 KYV1bhS2BeHakpjc9/BgX9Nd6PeKK1CHTkaqj+F808Fiuux03akBDu3acPeLbWKyu3 I5ed7LnxzYfdQ== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org, Linus Torvalds Cc: Greg Kroah-Hartman , Arnd Bergmann , Kees Cook , Randy Dunlap , Ulf Magnusson , Sam Ravnborg , Michal Marek , Masahiro Yamada , Michael Ellerman , Benjamin Herrenschmidt , linux-kernel@vger.kernel.org, Paul Mackerras , kernel-hardening@lists.openwall.com, linuxppc-dev@lists.ozlabs.org, Emese Revfy Subject: [PATCH 21/23] gcc-plugins: move GCC version check for PowerPC to Kconfig Date: Sat, 17 Feb 2018 03:38:49 +0900 Message-Id: <1518806331-7101-22-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518806331-7101-1-git-send-email-yamada.masahiro@socionext.com> References: <1518806331-7101-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For PowerPC, GCC 5.2 is the requirement for GCC plugins. Move the version check to Kconfig, and remove the ugly checker. Signed-off-by: Masahiro Yamada --- arch/powerpc/Kconfig | 2 +- scripts/Makefile.gcc-plugins | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 73ce5dd..b8474c2 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -195,7 +195,7 @@ config PPC select HAVE_FTRACE_MCOUNT_RECORD select HAVE_FUNCTION_GRAPH_TRACER select HAVE_FUNCTION_TRACER - select HAVE_GCC_PLUGINS + select HAVE_GCC_PLUGINS if GCC_VERSION >= 50200 select HAVE_GENERIC_GUP select HAVE_HW_BREAKPOINT if PERF_EVENTS && (PPC_BOOK3S || PPC_8xx) select HAVE_IDE diff --git a/scripts/Makefile.gcc-plugins b/scripts/Makefile.gcc-plugins index b0f9108..25da4c0 100644 --- a/scripts/Makefile.gcc-plugins +++ b/scripts/Makefile.gcc-plugins @@ -56,14 +56,6 @@ gcc-plugins-check: FORCE ifdef CONFIG_GCC_PLUGINS ifeq ($(PLUGINCC),) ifneq ($(GCC_PLUGINS_CFLAGS),) - # Various gccs between 4.5 and 5.1 have bugs on powerpc due to missing - # header files. gcc <= 4.6 doesn't work at all, gccs from 4.8 to 5.1 have - # issues with 64-bit targets. - ifeq ($(ARCH),powerpc) - ifeq ($(call cc-ifversion, -le, 0501, y), y) - @echo "Cannot use CONFIG_GCC_PLUGINS: plugin support on gcc <= 5.1 is buggy on powerpc, please upgrade to gcc 5.2 or newer" >&2 && exit 1 - endif - endif $(Q)$(srctree)/scripts/gcc-plugin.sh --show-error $(HOSTCXX) $(CC) || true @echo "Cannot use CONFIG_GCC_PLUGINS: your gcc installation does not support plugins, perhaps the necessary headers are missing?" >&2 && exit 1 endif -- 2.7.4