diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-06-19 16:33:00 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-06-19 16:34:05 +0000 |
commit | 4add86749a31f302674599b69d2eea691d69341a (patch) | |
tree | 68755949e4e394156f806e072463b3f3af64d278 /configure.ac | |
parent | f6110a8fee2ca36f8e2d2abecf3cba9fa7b8ea7d (diff) | |
download | glibc-4add86749a31f302674599b69d2eea691d69341a.tar.gz |
Require GCC 4.9 or later for building glibc.
This patch makes configure require GCC 4.9 or later for building
glibc, and documents that requirement. Requiring GCC 4.9 or later
allows use of _Generic (as in tzcode). It would allow <stdatomic.h>
and _Atomic to be used as well if desired, although we need to avoid
any libatomic dependencies on any platforms. This patch is explicitly
the minimum to implement a new version requirement, with any
consequent cleanups of conditional code (not in installed headers or
files shared with gnulib etc.) to be done separately.
Tested for x86_64.
* configure.ac (libc_cv_compiler_ok): Require GCC 4.9 or later.
* configure: Regenerated.
* manual/install.texi (Tools for Compilation): Document
requirement for GCC 4.9 or later.
* INSTALL: Regenerated.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 4c0a18edd9..16e97d3930 100644 --- a/configure.ac +++ b/configure.ac @@ -1105,7 +1105,7 @@ AC_CHECK_PROG_VER(AWK, gawk, --version, 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__ < 7) +#if !defined __GNUC__ || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9) #error insufficient compiler #endif], [libc_cv_compiler_ok=yes], |