about summary refs log tree commit diff
path: root/conform
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-05-01 20:04:44 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-05-01 20:04:44 +0000
commit9af0bf29de57bccb94db223ff835f1867b74b489 (patch)
tree3d974169257b18879311e523a1df57909574ec82 /conform
parent343222a2a0bdc34f09dfbd1abfb06b2d1e8d5d46 (diff)
downloadglibc-9af0bf29de57bccb94db223ff835f1867b74b489.tar.gz
glibc-9af0bf29de57bccb94db223ff835f1867b74b489.tar.xz
glibc-9af0bf29de57bccb94db223ff835f1867b74b489.zip
conformtest: Use correct keyword set for underlying C standard.
Diffstat (limited to 'conform')
-rw-r--r--conform/conformtest.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/conform/conformtest.pl b/conform/conformtest.pl
index 4704debc5e..018057f000 100644
--- a/conform/conformtest.pl
+++ b/conform/conformtest.pl
@@ -64,12 +64,15 @@ die "unknown standard \"$standard\"" if ($CFLAGS{$standard} eq "");
 #   $mustprepend{'wordexp.h'} = "#include <stddef.h>\n";
 # }
 
-# These are the ISO C99 keywords.
+# These are the ISO C90 keywords.
 @keywords = ('auto', 'break', 'case', 'char', 'const', 'continue', 'default',
 	     'do', 'double', 'else', 'enum', 'extern', 'float', 'for', 'goto',
-	     'if', 'inline', 'int', 'long', 'register', 'restrict', 'return',
+	     'if', 'int', 'long', 'register', 'return',
 	     'short', 'signed', 'sizeof', 'static', 'struct', 'switch',
 	     'typedef', 'union', 'unsigned', 'void', 'volatile', 'while');
+if ($CFLAGS{$standard} =~ /-std=(c99|c1x)/) {
+  push (@keywords, 'inline', 'restrict');
+}
 
 # Make a hash table from this information.
 while ($#keywords >= 0) {