Your if-empty changes has a typo in gcc.dg/if-empty-1.c causing a regression

Hans-Peter Nilsson hans-peter.nilsson@axis.com
Thu Mar 15 05:30:00 GMT 2007


With r122931 and later but not for r122926 and earlier, I see:
FAIL: gcc.dg/if-empty-1.c  (test for warnings, line 10)
FAIL: gcc.dg/if-empty-1.c  (test for warnings, line 18)
FAIL: gcc.dg/if-empty-1.c (test for excess errors)

because apparently that test wasn't adjusted/tested correctly
for the warning output change.  To be clearer, gcc.log contains:
/tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/if-empty-1.c: In function 'f':
/tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/if-empty-1.c:10: warning: suggest braces around empty body in an 'if' statement
/tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/if-empty-1.c:18: warning: suggest braces around empty body in an 'else' statement

while the dg-warning in the test doesn't suggest anything.

I don't have a suitable gcc check-out-area available or I'd
apply the obvious change myself.

brgds, H-P



More information about the Gcc-patches mailing list