]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use -std=c11 for C11 conform/ tests.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 27 Oct 2015 17:11:31 +0000 (17:11 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 27 Oct 2015 17:11:31 +0000 (17:11 +0000)
Now that GCC 4.7 or later is required to build glibc, this patch makes
the conformance tests use -std=c11 for C11 tests instead of -std=c1x
-D_ISOC11_SOURCE.

Tested for x86_64 and x86 (conform/ tests).

* conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
of -std=c1x -D_ISOC11_SOURCE.

ChangeLog
conform/GlibcConform.pm

index d4af4ec086f84263510ae42d4da9670b798c468e..832eed1f148f350ec9a46aa41e583980efc941d2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
 
+       * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
+       of -std=c1x -D_ISOC11_SOURCE.
+
        * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
        * configure: Regenerated.
        * manual/install.texi (Tools for Compilation): Document
index 8aeada4821707b2b8f8793926bcaa138e3fffe86..218b6ec63aad1497749c605031f9860925d17178 100644 (file)
@@ -27,7 +27,7 @@ require Exporter;
 # Compiler options for each standard.
 $CFLAGS{"ISO"} = "-ansi";
 $CFLAGS{"ISO99"} = "-std=c99";
-$CFLAGS{"ISO11"} = "-std=c1x -D_ISOC11_SOURCE";
+$CFLAGS{"ISO11"} = "-std=c11";
 $CFLAGS{"POSIX"} = "-D_POSIX_C_SOURCE=199506L -ansi";
 $CFLAGS{"XPG3"} = "-ansi -D_XOPEN_SOURCE";
 $CFLAGS{"XPG4"} = "-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED";