]> sourceware.org Git - glibc.git/commitdiff
Add stardard definition on conform processing
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Tue, 18 Mar 2014 13:54:04 +0000 (08:54 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Tue, 18 Mar 2014 18:55:48 +0000 (13:55 -0500)
This patch adds the -std=c99 option when preprocessing the data files
from the conform testcases. It fixes an issue where the compiler may
split the 'macro bool' defition from stdbool.h-data in two lines and
thus breaking the conform script.

ChangeLog
conform/conformtest.pl

index 7f677274738e366567f9979637751bcea5c18aee..84c4bfb8b754952d2e75d0e5598d9a303253a463 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
+
+       * conform/conformtest.pl: Add standard definition when calling C
+       preprocessor on data files.
+       (checknamespace): Remove unused variable.
+
 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
 
        * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
index 085fbb8c6d5bc943c15b2071c8424056a57e3c0f..c8c1d2a839b971808ed5cd91652ad3b864279871 100644 (file)
@@ -264,7 +264,6 @@ sub checknamespace {
   close (TESTFILE);
 
   undef %errors;
-  $nknown = 0;
   open (CONTENT, "$CC $CFLAGS_namespace -E $fnamebase.c -P -Wp,-dN | sed -e '/^# [1-9]/d' -e '/^[[:space:]]*\$/d' |");
   loop: while (<CONTENT>) {
     chop;
@@ -324,7 +323,7 @@ while ($#headers >= 0) {
   printf ("Testing <$h>\n");
   printf ("----------" . "-" x length ($h) . "\n");
 
-  open (CONTROL, "$CC -E -D$standard -x c data/$h-data |");
+  open (CONTROL, "$CC -E -D$standard -std=c99 -x c data/$h-data |");
   control: while (<CONTROL>) {
     chop;
     next control if (/^#/);
This page took 0.109524 seconds and 5 git commands to generate.