Received: by 10.223.185.116 with SMTP id b49csp644784wrg; Fri, 23 Feb 2018 04:40:10 -0800 (PST) X-Google-Smtp-Source: AH8x224W5TORRtXdYTwKGgvA1A1MkgcftNVK4yjUpdNlUafiE88LJtPiIzLBFN3a+gLPSsKHz0td X-Received: by 10.101.69.9 with SMTP id n9mr1388634pgq.317.1519389610693; Fri, 23 Feb 2018 04:40:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519389610; cv=none; d=google.com; s=arc-20160816; b=JePGAp/8tE8upt3V8n9vf6dkOLYkt47Z8aUIwlq8xnRGumoRyE+lX4/sYk/FmiKJe7 Qk5HtosdTNmKSCbcFeKd6EH4Tybc7//3D6PbNuuH+MOSXeoMwtCfprJN92xRF0nl4gsZ QEqvhWF9EoG329Lvl29qjkO4Q/6agjO4Uv/92300g/Jhk45iYiXk2ZFQg+PHQfbIe6pJ XnK9GbMD+7Smk/xbGerbpiDZeW82GV+xbA6wlgjefnbHZZa2COOkxZ9Lb6pTl3MGJan6 8CXK/8ONXyd+8tZ0YLQJ5UO9jH5DK0ee7Wk4jay9M3GwY4UB6p6e31GRNImrJBfpDBtD NlpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=tGfSwir3QWixobBtZpSMOFVtoa9g1Ik1AhQxrnF+kqI=; b=bRx1OVDUTNNRkPX09r3L9/n8CeN0R8XeJ5pku7gejFfbXKGSItM9MH/PvpGDSa7JYs SZFcpbJP2CFQDVFPy3e+NuddmqdxfPzHrmg2XUMRf2ZT1j6QCWhM5l0+T7OOIFKv8kmU Nwno0z+gNDZDkaEVdrz0ca/zrfgM4oYk8HVKvcW/fIWOFBaRiOQWctIqvsTg+2Q28C4o LRhvNstF1vXFpe1HUaWsZ8/RrRCymeAKU3q75JV3QD9pY7gHhB3G/JNV7cjVlmmNMfbw Ze5KPvB2LdRKPkLVPkC3pvZd9MQao5qxaNvqLO0qSZ+Ug1lOyBlsaw93Mro3+0Ien4l5 SVyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=VgWvHxj7; 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 b1-v6si1718878plc.260.2018.02.23.04.39.56; Fri, 23 Feb 2018 04:40:10 -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=VgWvHxj7; 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 S1751557AbeBWMiv (ORCPT + 99 others); Fri, 23 Feb 2018 07:38:51 -0500 Received: from conssluserg-05.nifty.com ([210.131.2.90]:28411 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751332AbeBWMit (ORCPT ); Fri, 23 Feb 2018 07:38:49 -0500 Received: from mail-ua0-f174.google.com (mail-ua0-f174.google.com [209.85.217.174]) (authenticated) by conssluserg-05.nifty.com with ESMTP id w1NCcY3E027565; Fri, 23 Feb 2018 21:38:34 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com w1NCcY3E027565 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1519389515; bh=tGfSwir3QWixobBtZpSMOFVtoa9g1Ik1AhQxrnF+kqI=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=VgWvHxj78BNQ5CYnd7n4agizQWZgD3o0bWw3ugzNjQQgs7vhKxzBzQvojK7IznkW+ pfDeCBkpiES77xY5oKthkjwuKJ+Eudpv/9vXD37w9AnyIikMuFN+fhYxGOYjuf5R2i GsMNuYA0iQXvRzrhiREdpTc3v3h9nZnquj9Wemhi+PBJVFlb3snypi/1RHGpQVItp/ SiHFcs20591pPrH8Jfs2Cv2phon4WzhuJlUYrqh+1o6T6O2afWbYILnJSCdJy2zqS+ WFbY+BEd5ZqhIQFJ+/lXpKDiVkON0PyjS3kWITGcs0bxYB3WUrH/18DFkcKtjWsgwz mJ5tRqxwp2ZfA== X-Nifty-SrcIP: [209.85.217.174] Received: by mail-ua0-f174.google.com with SMTP id p12so5609073uad.0; Fri, 23 Feb 2018 04:38:34 -0800 (PST) X-Gm-Message-State: APf1xPAfeAWCzzhAox53Lp0zfTNrJ7PXzWED1Orj47vbSsBh7T/wL7BV EozBCkMeCWDlbhhr7/gLydQuzGyHi466HsAvwm0= X-Received: by 10.176.88.217 with SMTP id r25mr1004552uac.52.1519389513412; Fri, 23 Feb 2018 04:38:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.83.212 with HTTP; Fri, 23 Feb 2018 04:37:53 -0800 (PST) In-Reply-To: <20180222194541.35076c5b2166879a8d5d234a@gmail.com> References: <1518806331-7101-1-git-send-email-yamada.masahiro@socionext.com> <1518806331-7101-21-git-send-email-yamada.masahiro@socionext.com> <20180222194541.35076c5b2166879a8d5d234a@gmail.com> From: Masahiro Yamada Date: Fri, 23 Feb 2018 21:37:53 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 20/23] gcc-plugins: always build plugins with C++ To: Emese Revfy Cc: Linux Kbuild mailing list , Linus Torvalds , Greg Kroah-Hartman , Arnd Bergmann , Kees Cook , Randy Dunlap , Ulf Magnusson , Sam Ravnborg , Michal Marek , Kernel Hardening , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-02-23 3:45 GMT+09:00 Emese Revfy : > On Sat, 17 Feb 2018 03:38:48 +0900 > Masahiro Yamada wrote: > >> If the target compiler is GCC 4.8 or newer, plugins are compiled with >> HOSTCXX. Otherwise, gcc-plugin.sh will select HOSTCC or HOSTCXX. >> >> To simpily things, let's decide GCC 4.8 is the requirement for GCC >> pulgins. With this, plugins are always built with HOSTCXX. This is a >> feature of advanced users, so this requirement whould not be not a big >> issue. > > I disagree with such a decision. I think the gcc plugins should compile > with older version because the kernel can be compiled with them too. > The distros use these older versions as well and I can very well imagine > that new plugins will extend these with backported features such as > my sancov plugin. > Let me clarify this. I removed the version check in the following patch: https://patchwork.kernel.org/patch/10225379/ So, you can enable CONFIG_GCC_PLAUGINS as long as scripts/gcc-plugin.sh passes (i.e. C++ can compile plugins). Even if it is unlikely happen, GCC 4.5 -> 4.8 is not a big jump. People were recently talking about the minimum compiler version https://patchwork.kernel.org/patch/10207385/ The thread is super long, but my understanding was 4.5 or 4.6 would be reasonable. So, we will be there sooner or later. -- Best Regards Masahiro Yamada