summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2014-11-14 18:00:34 +0000
committerJoseph Myers <joseph@codesourcery.com>2014-11-14 18:00:34 +0000
commit4863355ad52b71fecd7529928999074afdc4d51f (patch)
tree1ffd48230e61c99ad22b509ac1f390572dc3d6de /configure.ac
parentc1b0aadcdfd1b4b56588856cdc3197f4f145677d (diff)
downloadglibc-4863355ad52b71fecd7529928999074afdc4d51f.tar.gz
glibc-4863355ad52b71fecd7529928999074afdc4d51f.tar.xz
glibc-4863355ad52b71fecd7529928999074afdc4d51f.zip
Require GCC 4.6 or later to build glibc.
As discussed in the thread starting at
<https://sourceware.org/ml/libc-alpha/2014-10/msg00792.html>, and
continuing into November, this patch increases the minimum GCC version
for building glibc to 4.6 (there seemed to be no clear consensus for
4.7).  In particular, this allows us to use #pragma GCC diagnostic for
fine-grained warning control with -Werror (subject to establishing a
suitable policy for that use).  The documentation has a statement, as
requested, about the most recent GCC version tested for building
glibc, and I've updated <https://sourceware.org/glibc/wiki/Release> to
refer to updating that statement.  A NEWS entry is added for this
change, although previous such changes didn't get them.

Tested for x86_64 (testsuite, and that installed shared libraries are
unchanged by this patch).

	* configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
	* configure: Regenerated.
	* manual/install.texi (Tools for Compilation): Document a
	requirement of GCC 4.6 or later and that GCC 4.9 is the newest
	compiler verified to work.
	* INSTALL: Regenerated.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a982407d48..b2c4b1fab8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -934,7 +934,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__ < 4)
+#if !defined __GNUC__ || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6)
 #error insufficient compiler
 #endif],
 	       [libc_cv_compiler_ok=yes],