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.
+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,
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;
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 (/^#/);