Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp452396pxf; Thu, 18 Mar 2021 04:43:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7FYLz6mHzQwmieIbRjk2s2fOEkmaAMe7oQEXaErL8yEXV06CQsufZ6rXPxWepJWpEYP/H X-Received: by 2002:a17:907:33c6:: with SMTP id zk6mr39290703ejb.228.1616067808799; Thu, 18 Mar 2021 04:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616067808; cv=none; d=google.com; s=arc-20160816; b=QpmDrncygGbYBsX1rqo+z9WEwlYZEoTcuhM981nREJVXGDs3pfecGtAL5ICPNAPX62 cM1yCPvdI/nIuTSwUlQERZ42OP4SHnzOHPpZ1Vg81X6tdZ/L9KCglwNkbD8nBIJTyuzK c2vxeZ/lfEqdjwvMA8Z9bhlcVJf/0WwFbEPsq7g6ZSyFdBRIuUnVVkGTVGBAna7tAHDk N8fGLwT7QBdIwVKKZkMygAEd5WUPggt/2NsmUnj98nduFoEYUSLEOpNgoTWYjqzbHqQr RxojVuhECF1fIjXND1KBFf19y9LCLZY3y6i+LW3nMy6mb19bt96dO1Mv5mVkSOE7fWMC K3Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=3gUVFsIiFUdZC3QYRG+lqLS9JHqkGcFykr1dCb+SKIk=; b=kYJyIJAYOqY4knrMiHssEnLPUJY25a6Cs3ey4Dp3C1j6xAbt+FlciZIhOXKTkLuw+N UEJD/Hbuf/jPAkMS7/n4a8Rm0s/vycozwh8mDpDOxgPakSqWwge1/mB85jxW/YG+ClTO jSSFD7gbjVnJEUElt3O4tMsRaEIVcJBzMvjmeQopf8g9xQX6KZkNfpZTD0zsdK6cROfN +HbzVQVi7EHnP4xsx0FC13jW9NiJM8O424oXUY0bsUvbo/rjpI2wzyF+mI1SMuAnLJdd oGi2LCGZxq4bZOcS/l9G6s+A+LzVvIsReR3nD9ZUZgqbY2IBVe498AJhuzd5z0tJ0MX1 T1Dw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a7si1560650edb.607.2021.03.18.04.43.06; Thu, 18 Mar 2021 04:43:28 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230400AbhCRLmE convert rfc822-to-8bit (ORCPT + 99 others); Thu, 18 Mar 2021 07:42:04 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.86.151]:52374 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230049AbhCRLld (ORCPT ); Thu, 18 Mar 2021 07:41:33 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mtapsc-3-7h7ICMGPN3-qVP8vMIq3hg-1; Thu, 18 Mar 2021 11:41:30 +0000 X-MC-Unique: 7h7ICMGPN3-qVP8vMIq3hg-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 18 Mar 2021 11:41:29 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.012; Thu, 18 Mar 2021 11:41:29 +0000 From: David Laight To: =?windows-1257?Q?=27Valdis_Kl=E7tnieks=27?= , Kees Cook CC: Josh Poimboeuf , Geert Uytterhoeven , "linux-hardening@vger.kernel.org" , Linux Kernel Mailing List Subject: RE: [PATCH RESEND] gcc-plugins: avoid errors with -std=gnu++11 on old gcc Thread-Topic: [PATCH RESEND] gcc-plugins: avoid errors with -std=gnu++11 on old gcc Thread-Index: AQHXG7xcElVT0YEvr0m/P+UnKynj6KqJn0dQ Date: Thu, 18 Mar 2021 11:41:29 +0000 Message-ID: <279b22592f1e43a48beeecd34e50b385@AcuMS.aculab.com> References: <279558.1615192821@turing-police> <202103172251.F9D770D@keescook> <282490.1616047333@turing-police> In-Reply-To: <282490.1616047333@turing-police> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Valdis Kletnieks > Sent: 18 March 2021 06:02 > > On Wed, 17 Mar 2021 22:52:56 -0700, Kees Cook said: > > On Mon, Mar 08, 2021 at 03:40:21AM -0500, Valdis KlDtnieks wrote: > > > It turns out that older gcc (4.9 and 5.4) have gnu++11 support, but > > > due to a gcc bug fixed in gcc6, throw errors during the build. > > > The relevant gcc bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69959 > > > > > > Version the option based on what gcc we're using. > > > > Is there a better way to detect this than with version checking? > > Not really. gcc 11 needs --std=gnu++11 to build it. And although > gcc4 and gcc5 *claim* to support it, there's a known bug, so we *can't* > feed gnu++11 to them. We can check versions.. That gcc bug just implies you need a space after "xxx". That is easily fixable in the sources. Is there another problem? (Apart from the standards committee breaking everything again.) David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)