+2018-12-21 Joseph Myers <joseph@codesourcery.com>
+
+ [BZ #23993]
+ * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
+ * configure: Regenerated.
+ * manual/install.texi (Tools for Compilation): Update minimum GCC
+ version.
+ * INSTALL: Regenerated.
+
2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
* malloc/malloc.c (munmap_chunk): Verify chunk alignment.
As of relase time, GNU 'make' 4.2.1 is the newest verified to work
to build the GNU C Library.
- * GCC 4.9 or newer
+ * GCC 5 or newer
- GCC 4.9 or higher is required. In general it is recommended to use
+ GCC 5 or higher is required. In general it is recommended to use
the newest version of the compiler that is known to work for
building the GNU C Library, as newer compilers usually produce
better code. As of release time, GCC 8.1.1 is the newest compiler
* Python 3.4 or later is required to build the GNU C Library.
+* On most architectures, GCC 5 or later is required to build the GNU C
+ Library. (On powerpc64le, GCC 6.2 or later is still required, as before.)
+
+ Older GCC versions and non-GNU compilers are still supported when
+ compiling programs that use the GNU C Library.
+
Security related changes:
CVE-2018-19591: A file descriptor leak in if_nametoindex can lead to a
main ()
{
-#if !defined __GNUC__ || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9)
+#if !defined __GNUC__ || __GNUC__ < 5
#error insufficient compiler
#endif
;
AC_CACHE_CHECK([if $CC is sufficient to build libc], libc_cv_compiler_ok, [
AC_TRY_COMPILE([], [
-#if !defined __GNUC__ || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9)
+#if !defined __GNUC__ || __GNUC__ < 5
#error insufficient compiler
#endif],
[libc_cv_compiler_ok=yes],
to build @theglibc{}.
@item
-GCC 4.9 or newer
+GCC 5 or newer
-GCC 4.9 or higher is required. In general it is recommended to use
+GCC 5 or higher is required. In general it is recommended to use
the newest version of the compiler that is known to work for building
@theglibc{}, as newer compilers usually produce better code. As of
release time, GCC 8.1.1 is the newest compiler verified to work to build