This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]