This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC selftest improvements
- From: Eric Gallager <egall at gwmail dot gwu dot edu>
- To: Pedro Alves <pedro at palves dot net>
- Cc: Gabriel Dos Reis <gdr at microsoft dot com>, 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>, "law at redhat dot com" <law at redhat dot com>, "jason at redhat dot com" <jason at redhat dot com>, Jonathan Wakely <cxx at kayari dot org>
- Date: Sun, 1 Dec 2019 21:50:45 -0500
- Subject: Re: GCC selftest improvements
- References: <CO2PR00MB01197C9432A2E02C6F1692F1EA6A0@CO2PR00MB0119.namprd00.prod.outlook.com> <d16fabaf83d56495ce27f1ef5ca413247c29c24f.camel@redhat.com> <BN3PR00MB0116141705F4EA4B22045A19EA650@BN3PR00MB0116.namprd00.prod.outlook.com> <BL0PR2101MB10099E3DB7EB62603AFE4F21B0640@BL0PR2101MB1009.namprd21.prod.outlook.com> <CAMfHzOumpVVf1YV6rZZjGzpp-s5g36GntCgnq8vRY943sdnDbA@mail.gmail.com> <2f583ca8-56ea-460f-bcaf-c70108451aa8@palves.net>
On 10/31/19, Pedro Alves <pedro@palves.net> wrote:
> On 10/26/19 11:46 PM, Eric Gallager wrote:
>
>> Nicholas Krause was also wanting to move to C++11 recently:
>> https://gcc.gnu.org/ml/gcc/2019-10/msg00110.html (this month)
>> https://gcc.gnu.org/ml/gcc/2019-09/msg00228.html (last month)
>> As I said in that thread, I'd want to try just toggling -Wnarrowing
>> from off to on first before going full C++11.
>
> Why? GDB went the other way when it moved to C++11. It switched
> to C++11, and for several months, used -Wno-narrowing to quiet
> the thousands of warnings.
>
> https://gcc.gnu.org/wiki/FAQ#Wnarrowing
Sorry, lost track of this conversation in the end-of-month mail
archive rollover... Uh, to be honest, I guess I don't really have a
rational reason for wanting to switch to -Wnarrowing first; it's
really more of an emotional/aesthetic desire I have on my part... Feel
free to do the switch in the other order if that turns out to be
easier. Anyways, from the rest of the discussion, it looks like this
will be waiting for GCC 11 anyways, so I'm already getting my "hold
off 1 release" wish, so I guess I don't really care as much about the
-Wnarrowing part as much any longer...
Eric
>
>> So, GCC 10 would be
>> C++98 + -Wnarrowing, and then GCC 11 could be full C++11. Plus then
>> the GCC version numbers would also line up with the version of C++
>> being used.
>
> Thanks,
> Pedro Alves
>