Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2814640pxb; Mon, 11 Jan 2021 22:02:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxC80i6l7xyxvbJM0PLfufoWt56YYFmyyB9FB9GK3lRkvVQ/6uMwmeb8o71r3VrWhPJv2aX X-Received: by 2002:a17:906:b082:: with SMTP id x2mr1963170ejy.100.1610431375780; Mon, 11 Jan 2021 22:02:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610431375; cv=none; d=google.com; s=arc-20160816; b=PIv+m1eiLPHgZY3IVFCFHxs3SUDQiTQXrx2xscGpzwSYFiBzR2rJ3l8gvJbT6jTFke MyFzhUr/VfdH2Si5OpQYKjYBnXt0PhW/qC81PdiD7NeCwmngBn7KYb6Tx4/pi5jQpRoA Krs4bbY5PMFiLNpzEkjLF5VvfrChX568ECj6dOY1bvG7O9ds/PR+Rh2w6hPk5VzKcl4e r1gSBBvrVO6/s78dvYGwWRRu+Au0xiGZOhTCnu5eHfrphCTBROniIf+1a2P1ms8Rij3T h7dZTXfix9GFDu+dw6ozLDMxflPJc8Xot1vFF1JoIMV0PjaBStrTjW4KqLQbNCsA33pP ZKOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=z9Ytc0z65ta6VBHkGYAtmWB3CyrCaTNiz9kZPtd9Uis=; b=e/tykpxBqpqWjEVioWhrrkgwYtSjiaH/z9ZsXOCz1w64b2jDVQ+9JRwigIk7SQQsYx eMtCUYrX8malzRaV8hm6cNAo7Ub2DzwzmMbqLhYtN2q6438/8xIzsi79JcNcc35TXWyQ ugGi9PIC5h/AtN/QlOXJGQTDROefXiXD7Cqx3VT6kqPlK0ey03PoWu3K/N+92auaLEzh sOzYyT42tHaYqplRPvvKHd7i3/2ikeaOsTVWx4rnNLuC9OT3W8zDZnxUeK/bNIkzh3Oy DjNDkTr9pS6/K+s6MhhzfCUw/Vg5Js0bT617PILfp8snf4dX1AwPlVehIaEhH27PS8KG aZRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VuWBMiXu; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id md16si728394ejb.563.2021.01.11.22.02.32; Mon, 11 Jan 2021 22:02:55 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=VuWBMiXu; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731623AbhAKNjC (ORCPT + 99 others); Mon, 11 Jan 2021 08:39:02 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:51897 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731690AbhAKNiy (ORCPT ); Mon, 11 Jan 2021 08:38:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610372248; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=z9Ytc0z65ta6VBHkGYAtmWB3CyrCaTNiz9kZPtd9Uis=; b=VuWBMiXuaXHH/UzujDs85/x51SZwBDiqfv2HkEXgkWqiYCnc6MlSVm28+DCjBATQRkpexo 1BqouaJjBmQdmLeyuu+QXdYPTg6A1hLekVFHmCIfpgeMRl/Pna0Hy1pQIA+DICLRTWsASj eCtq9BslSeKxy886muOxZ2GifaJZWzU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-528-2Qg1gw1kP32avUrGJwu4QQ-1; Mon, 11 Jan 2021 08:37:24 -0500 X-MC-Unique: 2Qg1gw1kP32avUrGJwu4QQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7A2B4835B68; Mon, 11 Jan 2021 13:37:22 +0000 (UTC) Received: from treble (ovpn-120-156.rdu2.redhat.com [10.10.120.156]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 81BED50C0D; Mon, 11 Jan 2021 13:37:21 +0000 (UTC) Date: Mon, 11 Jan 2021 07:37:19 -0600 From: Josh Poimboeuf To: Valdis =?utf-8?Q?Kl=C4=93tnieks?= Cc: Geert Uytterhoeven , Kees Cook , linux-hardening@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH] gcc-plugins: fix gcc 11 indigestion with plugins... Message-ID: <20210111133719.w53ad4xnw5yyi2lf@treble> References: <82487.1609006918@turing-police> <160997457204.3687425.15622431721220616573.b4-ty@chromium.org> <122278.1610362619@turing-police> <128149.1610368277@turing-police> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <128149.1610368277@turing-police> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 11, 2021 at 07:31:17AM -0500, Valdis Klētnieks wrote: > On Mon, 11 Jan 2021 05:56:59 -0500, I said: > > > > It's probably related. I'm just having a hard time understanding why 4.9 and 5.4 > > > whine about the lack of a space, while 8.3 and 11 didn't complain... > > So after more digging, at least some clarity has surfaced. > > It looks like it's not a kernel source tree issue, it's a g++ issue fixed in g++ 6 and later. > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69959 > > And it looks like there was an intent to backport it to 4.9 and 5.4: > https://gcc.gnu.org/legacy-ml/gcc-patches/2016-02/msg01409.html > > The bugtracker doesn't show an equivalent for 69959 being closed against 4.9.x or 5.[56], > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63254 has a patch for one of the > gcc-supplied files that tosses the warning, but that way lies madness... > > Not sure what we want to do here - the main alternatives I see are: > > Tell people still using 4.9/5.4 to either live with the warning or upgrade to 6 or later > > Make the flag a variable and pass either -std=gnu++98 or -std=gnu++11 > depending on the output of 'g++ --version' > > What say the peanut gallery? I think putting the flag in a variable (based on call cc-ifversion) should be easy enough, then we can put this little saga behind us and pretend it never happened :-) -- Josh