]> git.ipfire.org Git - thirdparty/gcc.git/commit
build: update bootstrap req to C++14
authorJason Merrill <jason@redhat.com>
Tue, 17 Sep 2024 21:38:35 +0000 (17:38 -0400)
committerJason Merrill <jason@redhat.com>
Mon, 28 Oct 2024 12:55:35 +0000 (08:55 -0400)
commita9ec1bc06bd3ccf18f6c7b2f0255ce7878b418b7
treed97426d5fa44cd56b1f8286eab61f70bc4aafe13
parentf475a31ab4c7f27f6f8c7a418412f9fddc371638
build: update bootstrap req to C++14

We moved to a bootstrap requirement of C++11 in GCC 11, 8 years after
support was stable in GCC 4.8.

It is now 8 years since C++14 was the default mode in GCC 6 (and 9 years
since support was complete in GCC 5), and we have a few bits of optional
C++14 code in the compiler, so it seems a good time to update the bootstrap
requirement again.

The big benefit of the change is the greater constexpr power, but C++14 also
added variable templates, generic lambdas, lambda init-capture, binary
literals, and numeric literal digit separators.

C++14 was feature-complete in GCC 5, and became the default in GCC 6.  5.4.0
bootstraps trunk correctly; trunk stage1 built with 5.3.0 breaks in
eh_data_format_name due to PR69995.

gcc/ChangeLog:

* doc/install.texi (Prerequisites): Update to C++14.

ChangeLog:

* configure.ac: Update requirement to C++14.
* configure: Regenerate.
configure
configure.ac
gcc/doc/install.texi