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 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: Sat, 26 Oct 2019 00:01:02 +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=S8B8LnGeXxX4dk9fPRWtILat01O8EgW+7pWvKlUX4C4=; b=Cx4eEgH1IDHCzGnh8GMsJeCwpgMp3ZI1DcUnXjx9lGnomiLQ/iDPljZUIUN/VvhxENOR37/rh+jzyVA1M8K/xrkPBZ4CWWYlk+BNK5ROoSXmjfBmcFg5uYTy8QXG+McQ7dYgBVV0LX4ueRosn9iE9///ftO2VS6mkjW/2R+I2WkyRII/1cUh0yrhk9HISXqDFW2yQyBszqRtPNoZbiXczKPpg2ogwaK/yI4134OoP2XRGSuvcgNBa8TwfNEqevGt5Jh7AmBT2PkAKCQTOCr219AzooRvT0dI6PPWaXgA6gdzlM27fhRnuDuLabjGOtYpdiO+Qa5ZYvQsoRVJxQV9rg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k9IYUM8Y4vSrWTTfdTD2vRGpMUvhF2A2iLW5LvhuWaUNSGkGjvxtQFNGAXnS12eGd3OTB3IchEJiekNXeH0TLcQA/V7Xa2Bg95d+MwSmZdgf6K593X7g4jO/XPtjl6B/7yvukQZDFqU20qSZs1HIbdZNYK16ueUKSJqIQPfzNztAlXGznhAgR2DZr1pgIucyeirmw3NH7p7cyWATJWEbP2116YckYQmi9eyF6epCIcWugb9XV5hjm1aWNS06vJf+hbgXl8HVZGqVDtnqyEJZj5GS0bawmDbwNug8hKMIRhhUQc+ePSXDtIMDI7HMvdMJsleXCagOp3iIM6Z8jQYQWA==
- References: <CO2PR00MB01197C9432A2E02C6F1692F1EA6A0@CO2PR00MB0119.namprd00.prod.outlook.com> <d16fabaf83d56495ce27f1ef5ca413247c29c24f.camel@redhat.com> <BN3PR00MB0116141705F4EA4B22045A19EA650@BN3PR00MB0116.namprd00.prod.outlook.com>
- Reply-to: Gabriel Dos Reis <gdr at microsoft dot com>
[Andrew]
| > GCC has some rather unique requirements, in that we support a great many
| > build configurations, some of which are rather primitive - for example,
| > requiring just C++98 with exceptions disabled, in that we want to be able to
| be
| > bootstrappable on relatively "ancient" configurations.
| > IIRC auto-registration of tests requires that the build configuration have a
| > sufficiently sane implementation of C++ - having globals with non-trivial
| ctors
| > tends to be problematic when dealing with early implementations of C++.
|
| Is C++98 the limit of what we can use in GCC? If so, that immediately
| eliminates Catchv1 (C++03), Catch2 (C++11+) and GTest (C++11)
C++98 was what Diego, Lawrence, Benjamin, Ian, and myself could agreed to back in 2011-2012 when C++11 got just out as a C++ standard, so we couldn't pick C++11 as we didn't have enough G++ out there to count on.
I would expect the situation to have drastically changed - with very handy and popular features such as 'constexpr' (especially with the C++14 relaxation), lambdas and range-for.
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?
-- Gaby