Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp366208pxf; Thu, 18 Mar 2021 02:12:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytVaB/lNK3d3pANtX5TXRSfyZzuVmNPKaRkVGtJ0z4oTBZ9g4QM+Lh5AyIHIE+H687v558 X-Received: by 2002:a05:6402:145a:: with SMTP id d26mr2377473edx.182.1616058726139; Thu, 18 Mar 2021 02:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616058726; cv=none; d=google.com; s=arc-20160816; b=V8uzlrC+d7VHry547QLd3VVE1XnLkkSSvCu/jT45VElApnKaY/zdcgLgDnoPohawUN rSdO4H74gaa79+qeO+kqjbSBnnMzCedq5vCS8sGRaZD9KPKqcHlejzZUj8M1aiWsGbKG Im6Kgoz3KFFiLrvgBmn2IbzjSOgunWgEZzJeTfGSvSvSy6jOQN64ll1q67NKImJac7nx 4YscIUXhEE6IQnIqJ98KynyX+2CUYhPISGBO4BQllgu6bzeElk8ui5+g3DcIV5sUAVVC W/P8ZXFE20xGIgjm/S7yyJb1T3l8/m7v+7UwoBHA9naXmJTggZL8yqtQE3SGbdJwb9Yz BgOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=DMeyXHmm9SwBy+TWjB+RHjym33sbRva0yUXx5ZZSrNA=; b=dnziMBNbFxs5LyKh8kuYh51PybO38p5pMcnyZR3i6avPHtHRsmK4wYzajG8OttZ8BZ F5A9vFh8L701Nx6m+6htcr8l2gqs3H+tSfT1wkaopxPhjgTjnMTzAu3Uc7Qnjr1i4eRJ B7+PurFnlTzgbypSNCEzeylDJprXwXJUWwAKEsAPQor0D5Aj0UZICWh2XOUo9/+h+8hq jK+wbita5SqavgKFY3XhlV2hiht8bcXYLJwHgQD6n/rQilnKQIAHqY//2ugAOb9SyyAZ 3Th5o4/Bsmm4Ko95L0c680asLoJapq5d2hNimEZgBYJrzJwaUsE48VfCb4NQ3Xl+yhH1 UTsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Wr55UlRO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bg8si1163950ejb.188.2021.03.18.02.11.44; Thu, 18 Mar 2021 02:12:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Wr55UlRO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229748AbhCRJIj (ORCPT + 99 others); Thu, 18 Mar 2021 05:08:39 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:42062 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbhCRJIa (ORCPT ); Thu, 18 Mar 2021 05:08:30 -0400 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 12I985xV022630; Thu, 18 Mar 2021 18:08:05 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 12I985xV022630 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1616058486; bh=DMeyXHmm9SwBy+TWjB+RHjym33sbRva0yUXx5ZZSrNA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Wr55UlROohtEYkPVNv66reXFMYmlAGsxY+mM0TSJqeplwE2aUxHwiJCGj8ePKQyUH SNgAV2jp9f+/Yezsc6uBPoVVXJXxO1UysKdDt0tUqSV7GUNwU3cQ/1425o8ed2Cszg x8R5+otBhlC6DatIJ4wqWf1vNNV1oU8T6lwtfMw9EmYauQinBtQQz6JlYwOL6fQgyk hFzKxfbpgHxwR67Sh4n/IDKKuZJey+Nv0M11KGMzo4iVjWm7Ubgo80I7xp4Z184LEt j/psHBNNffutpFY4fHUXIfbJ7f1BGtFlyxLzahUk6ufJGred8YwkPc0p1x9zOWnIuO qCeu5m1sDH4nA== X-Nifty-SrcIP: [209.85.216.44] Received: by mail-pj1-f44.google.com with SMTP id ot17-20020a17090b3b51b0290109c9ac3c34so2391351pjb.4; Thu, 18 Mar 2021 02:08:05 -0700 (PDT) X-Gm-Message-State: AOAM530nncarkHreAqipQkQgnhRCq4Reny7b2wMek0egWyTuTaqSqLQM wmZJvQEZgppz0bhLyHiYLteQb57KSuX8mFFcEps= X-Received: by 2002:a17:90a:3b0e:: with SMTP id d14mr3355489pjc.198.1616058484971; Thu, 18 Mar 2021 02:08:04 -0700 (PDT) MIME-Version: 1.0 References: <279558.1615192821@turing-police> <202103172251.F9D770D@keescook> <282490.1616047333@turing-police> In-Reply-To: From: Masahiro Yamada Date: Thu, 18 Mar 2021 18:07:28 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH RESEND] gcc-plugins: avoid errors with -std=gnu++11 on old gcc To: Miguel Ojeda Cc: =?UTF-8?Q?Valdis_Kl=C4=93tnieks?= , Kees Cook , Josh Poimboeuf , Geert Uytterhoeven , linux-hardening@vger.kernel.org, Linux Kernel Mailing List , Nick Desaulniers , Joe Perches Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 18, 2021 at 3:26 PM Miguel Ojeda wrote: > > On Thu, Mar 18, 2021 at 7:03 AM Valdis Kl=C4=93tnieks > wrote: > > > > Or declare that gcc6 is the minimum for building the kernel. > > Cc'ing some interested people in raising GCC's version for one reason > or another, so that we put this as another one in the pile of reasons > :-) > > https://lore.kernel.org/lkml/CAHk-=3Dwjgvt1Ei72BTrEH5fgfqykVH-AYt56-7yBT8= Lcprj7bEg@mail.gmail.com/ > > Cheers, > Miguel Previously we were discussing raising the min GCC version 5.x, but not further at this point of time. We can require GCC 6+ for building GCC plugins. --- a/scripts/gcc-plugins/Kconfig +++ b/scripts/gcc-plugins/Kconfig @@ -8,7 +8,7 @@ config HAVE_GCC_PLUGINS menuconfig GCC_PLUGINS bool "GCC plugins" depends on HAVE_GCC_PLUGINS - depends on CC_IS_GCC + depends on CC_IS_GCC && GCC_VERSION >=3D 60000 depends on $(success,test -e $(shell,$(CC) -print-file-name=3Dplugin)/include/plugin-version.h) default y help BTW, the commit message mentions that the issues only happen on GCC 4 and 5, but the added code was: GCC_FLAVOR =3D $(call cc-ifversion, -ge, 1100, 11, 98) instead of GCC_FLAVOR =3D $(call cc-ifversion, -ge, 600, 11, 98) So, this patch is also requiring to cover two standards: GCC_VERSION >=3D 11 : -std=3Dgnu++11 GCC_VERSION < 11 : -std=3Dgnu++98 --=20 Best Regards Masahiro Yamada