summary refs log tree commit diff
path: root/conform
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-10-27 17:11:31 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-10-27 17:11:31 +0000
commitcaf2d83659ce326c23bca0393a2a88749c4a9def (patch)
tree72e08b3b90953dafac71547fc003aca33b99d312 /conform
parentb08b42183537d91556ad8649717aa8e61e564207 (diff)
downloadglibc-caf2d83659ce326c23bca0393a2a88749c4a9def.tar.gz
glibc-caf2d83659ce326c23bca0393a2a88749c4a9def.tar.xz
glibc-caf2d83659ce326c23bca0393a2a88749c4a9def.zip
Use -std=c11 for C11 conform/ tests.
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.
Diffstat (limited to 'conform')
-rw-r--r--conform/GlibcConform.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/conform/GlibcConform.pm b/conform/GlibcConform.pm
index 8aeada4821..218b6ec63a 100644
--- a/conform/GlibcConform.pm
+++ b/conform/GlibcConform.pm
@@ -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";