Received: by 10.223.185.116 with SMTP id b49csp2270297wrg; Thu, 22 Feb 2018 10:51:46 -0800 (PST) X-Google-Smtp-Source: AH8x224SK9liAkXPyjiEHqKaiwD3YvA+YmJVlWCqvyfoCUrQy6SRwFQDkYmu1rcqe/Eu6+cRFfaV X-Received: by 10.98.224.65 with SMTP id f62mr7854067pfh.191.1519325506572; Thu, 22 Feb 2018 10:51:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519325506; cv=none; d=google.com; s=arc-20160816; b=wAP2gmeRLToM577zEo/hf0dUY7YmUHwmZtIMbL8nvLPhPKllT7HVujPg+ewCQPnibn 5AExvtyRgjKw3YtrJOmi8ZLuoqieqf5W9XUY8rJ3Fl9gqaoH/XO5K5yHlyH7HVwHKdw9 DbKx8PsDIbwoQVMfvN40O2b+utrfn5NbcyFyfTvhx6n08Jxo8jdrlpz9CmoWfRWh7/oS AstZdM/Q3cpf0rAdonI9Q47CQErpuOGZF/GM9ND2ClOoVuwq+65qFf8oaL78XQ6RTUBP ccS6ClwNTV3kygb9hwRCh/WukmTb0XJd1rtGwLdrHRaNcJ9S21PDmgO2mWPQYskdMUIi u7tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=A76T9X87eggiI7wPmER3QcsewSP23sak9LMb/SXQn5o=; b=1IgA5o4dEIJVEE4Gw3J7pnbk5L7B9fU+87zDKdHvpXJbOgYcTaojs7IS4rpI1K5YOX vpuYou0Ejq4WpnQ9tSi0uz8tZPMZ2VD5YdsaJ4g+q9dtCSTA8hdnyc+CX4S50clqgrGc D5/jxdKmt+eKsfdcvYWSYiEWkkhq6u5kgpRhBHETGvb4iijVtGCGLO+TA5O3edXU3uLz 9BLLqZTPBjq9uN+5e8Z+Yy2xc/56rllyVWd4Fqvz5r6hhF11laRriVxpKb2FLl+jgOlz otKoE+oUkbQbOtADu2iV4ZrBfl5ST1V/mjKLTxiNcuHTSyMUK7wNOs4o2o/xgxWqdJ2/ koVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VxppnIq9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si363423pgq.508.2018.02.22.10.51.31; Thu, 22 Feb 2018 10:51:46 -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=@gmail.com header.s=20161025 header.b=VxppnIq9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751317AbeBVSuq (ORCPT + 99 others); Thu, 22 Feb 2018 13:50:46 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:35448 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750752AbeBVSuo (ORCPT ); Thu, 22 Feb 2018 13:50:44 -0500 Received: by mail-wm0-f44.google.com with SMTP id x21so309622wmh.0; Thu, 22 Feb 2018 10:50:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A76T9X87eggiI7wPmER3QcsewSP23sak9LMb/SXQn5o=; b=VxppnIq9Np4U9iTQ9sfjW0CmEIgiqYIlQZVZBfOlsBFLVjY2KKzdC28YjBBo9S+tSM tuLAixcVQW1/af1rUlAg+OMS2C4xlykTM8U7vYx4QF0wlcov4MY8z6aDBx6c3XxuBt9j jxm3pKY9+COoyiRRUKwvYPgdw/Z1flYK6EE1uHNEbtBA4pgeO7QV9CkPKnSvSXvUBxZl ypFbadhgCVY1l7j7XgQ7mIIcBdlvjPpWZ0CMRGsGLCAgagy7jVB8dO2xldWUHPtP+jHX LZPXZ1+4tUIZUyJtQyZGdclNVtGY72mBWDPQl+P1vhMZI9FVwAocXg/9DSRfFXBVepL1 OdJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=A76T9X87eggiI7wPmER3QcsewSP23sak9LMb/SXQn5o=; b=mfhHLvAOJeunrVke5f4IECHkaDhNAs2RAAKlxdEcX7FOFbV2wB53RUOx/ApECl2gMn a9HvPlF/KfG3EcQaPrIA142EZklwfWtaWs6l+wjZeHl4bZmWWkv9H+RRdXgC3JMEGiE0 TjNeSCYFzgrl02Wh0jn+9W+g1dLC8+NOZqHsynqPDjDbVxSdc8aUEmOdygOekamqZg57 57xcMSW+Xkrlr15jtlwWaw71Vdk8Qs3/FptGHXscdFfeDw/1v+eJvFGAUJ2GkA9z38i2 2P9zPKkNBpFyCsEu3sGWsB9ktueXmjENJ/rAi5lu5IdgNYLY4p+jSi59MMBHof0Be/tM pU/A== X-Gm-Message-State: APf1xPANvHEXKTrX5blgFTTpNMjypvPFROD0FmAbQRsCt/27UdlZ4Pw/ SDxHbRmmnVqWkWacV836rF0= X-Received: by 10.28.63.81 with SMTP id m78mr158258wma.102.1519325443048; Thu, 22 Feb 2018 10:50:43 -0800 (PST) Received: from racka (catv-176-63-102-57.catv.broadband.hu. [176.63.102.57]) by smtp.gmail.com with ESMTPSA id a14sm918198wrf.22.2018.02.22.10.50.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Feb 2018 10:50:42 -0800 (PST) Date: Thu, 22 Feb 2018 19:45:41 +0100 From: Emese Revfy To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Linus Torvalds , Greg Kroah-Hartman , Arnd Bergmann , Kees Cook , Randy Dunlap , Ulf Magnusson , Sam Ravnborg , Michal Marek , kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, keescook@chromium.org, kernel-hardening@lists.openwall.com Subject: Re: [PATCH 20/23] gcc-plugins: always build plugins with C++ Message-Id: <20180222194541.35076c5b2166879a8d5d234a@gmail.com> In-Reply-To: <1518806331-7101-21-git-send-email-yamada.masahiro@socionext.com> References: <1518806331-7101-1-git-send-email-yamada.masahiro@socionext.com> <1518806331-7101-21-git-send-email-yamada.masahiro@socionext.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Emese