This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: GCC selftest improvements
- From: "Gabriel Dos Reis via gcc" <gcc at gcc dot gnu dot org>
- To: Andrew Pinski <pinskia at gmail dot com>, Jakub Jelinek <jakub at redhat dot com>
- Cc: Jeff Law <law at redhat dot com>, Segher Boessenkool <segher at kernel dot crashing dot org>, Andrew Dean <Andrew dot Dean at microsoft dot com>, David Malcolm <dmalcolm at redhat dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "ro at CeBiTec dot Uni-Bielefeld dot DE" <ro at cebitec dot uni-bielefeld dot de>, "mikestump at comcast dot net" <mikestump at comcast dot net>, "jason at redhat dot com" <jason at redhat dot com>, Jonathan Wakely <cxx at kayari dot org>
- Date: Mon, 28 Oct 2019 22:03:39 +0000
- Subject: RE: GCC selftest improvements
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FagTPhvxAp9r/OQik9IgiM7LZGPyB9vGJnvhvN7IcS8=; b=iPWPpz8nQ7pI79YKMiAXIHYVCOsfrBaN7QgELu65SgkS863MOflJa5pUtDTOsFkLa59cQjjFT2JApP6xIXstmaJxr06wdojgt53FjolnjcrYhFJIGaaLmZDHw/1X8x/V7mo197qKZgPW5fv6jOEqiJiFjsoXKqK9OpdYIpZwlLkTn6zM0TusSgFdfFG9W0OYWnWCZO8YfGURQ06DR2Z6jT8Oeo2KXlf2MZe80VI1csxfK7mi6ct7Tc2HoB4XkW7ObAAICdMA6nDrkJfwI7WvV2lFhGQizYsQORpgtVIiKxyxATmxSxrzIgL4MjzdtDiPPiJOA6oRSUfnVUjEwrzcPw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lvj/ASSjqhlTUzG34EhMJ3FO0E6FiRUIek8J9xtEsEARSEhIivc5WcGsues1KuMg4yaxdgiiabEqjP6625TPLzgB7+arNpaIJnx+XGKQPBO235n5bJ473z4vdINUlZc+l+yfIjiflUTpzXyeY+E7ueqi8cAvIB2AqKvqZcKSg0Fzoq68bzmCGWsQSPWYLvU0y2pgSKJp5pNrKvpqvb/siCJax2+j12gFRTeGBrX6vjhBxZjJdDKMJn3xQOQIVCp0qI5MbhwBrkvrForSn9J+01dHaGEUUlnNJAS6gWPu+QfJIS8ijEUq1Zb0qlVxZjnmKKcLAoKMCjBsT4VLaXsx+w==
- References: <CO2PR00MB01197C9432A2E02C6F1692F1EA6A0@CO2PR00MB0119.namprd00.prod.outlook.com> <d16fabaf83d56495ce27f1ef5ca413247c29c24f.camel@redhat.com> <BN3PR00MB0116141705F4EA4B22045A19EA650@BN3PR00MB0116.namprd00.prod.outlook.com> <BL0PR2101MB10099E3DB7EB62603AFE4F21B0640@BL0PR2101MB1009.namprd21.prod.outlook.com> <acbd13b7-8869-3b52-1590-27ec4dc894cb@redhat.com> <20191028202713.GF28442@gate.crashing.org> <00dcb1c4-793c-c44f-da1b-eabe067c7e1e@redhat.com> <20191028214656.GB4650@tucnak> <CA+=Sn1m3Wc-gAMr=tu4LRKUxFeoAeKeEA-6DBdN8zBbdnnmbLw@mail.gmail.com>
- Reply-to: Gabriel Dos Reis <gdr at microsoft dot com>
| -----Original Message-----
| From: Andrew Pinski <pinskia@gmail.com>
| Sent: Monday, October 28, 2019 2:52 PM
| To: Jakub Jelinek <jakub@redhat.com>
| Cc: Jeff Law <law@redhat.com>; Segher Boessenkool
| <segher@kernel.crashing.org>; Gabriel Dos Reis <gdr@microsoft.com>;
| Andrew Dean <Andrew.Dean@microsoft.com>; David Malcolm
| <dmalcolm@redhat.com>; gcc@gcc.gnu.org; ro@CeBiTec.Uni-Bielefeld.DE;
| mikestump@comcast.net; jason@redhat.com; Jonathan Wakely
| <cxx@kayari.org>
| Subject: Re: GCC selftest improvements
|
| On Mon, Oct 28, 2019 at 2:47 PM Jakub Jelinek <jakub@redhat.com> wrote:
| >
| > On Mon, Oct 28, 2019 at 03:41:13PM -0600, Jeff Law wrote:
| > > On 10/28/19 2:27 PM, Segher Boessenkool wrote:
| > > > On Mon, Oct 28, 2019 at 01:40:03PM -0600, Jeff Law wrote:
| > > >> On 10/25/19 6:01 PM, Gabriel Dos Reis wrote:
| > > >>> Jason, Jonathan - is the situation on the terrain really that dire that
| C++11 (or C++14) isn't at all available for platforms that GCC is bootstrapped
| from?
| > > >> The argument that I'd make is that's relatively uncommon (I know, I
| know
| > > >> AIX) that bootstrapping in those environments may well require first
| > > >> building something like gcc-9.
| > > >>
| > > >> I'd really like to see us move to C++11 or beyond. Sadly, I don't think
| > > >> we have any good mechanism for making this kind of technical
| decision
| > > >> when there isn't consensus.
| > > >
| > > > Which GCC version will be required to work as bootstrap compiler? Will
| > > > 4.8.5 be enough?
| > > I'd say gcc-9. What would we gain by making it 4.8 or anything else
| > > that old?
| >
| > That is not a good idea, it will make it much harder to build gcc because
| > not everybody has gcc-9 built as a system compiler.
| > The previous minimum requirement of 4.1 is perhaps too old now that 4.8
| is
| > something we could require and gain through that C++11 support, but we
| > shouldn't follow Rust with "you can only build it with 6 weeks old previous
| > release and nothing else".
| > As discussed earlier, we gain most through C++11 support, there is no need
| > to jump to C++17 or C++20 as requirement.
|
| Just a quick note.
| RHEL/CentOS 7 uses GCC 4.8 as the system compiler. Requiring a new
| compiler to compile GCC 10 will not work for me.
| I normally bootstrap GCC 10 and then build a GCC 10 cross compiler.
| Having to have an extra compiler inbetween is problematic for me.
|
| Thanks,
| Andrew
I would think C++14 gives you a good compromise, as you have access to key C++11 functionalities with a less crippled constexpr support.
-- Gaby