Re: [PATCH 2/2] gcov: test line count for label in then/else block

2022-10-13 Thread Richard Biener via Gcc-patches
On Tue, Oct 11, 2022 at 2:43 PM Jørgen Kvalsvik wrote: > > Add a test to catch regression in line counts for labels on top of > then/else blocks. Only the 'goto ' should contribute to the line > counter for the label, not the if. OK. > gcc/testsuite/ChangeLog: > > *

[PATCH 2/2] gcov: test line count for label in then/else block

2022-10-11 Thread Jørgen Kvalsvik via Gcc-patches
Add a test to catch regression in line counts for labels on top of then/else blocks. Only the 'goto ' should contribute to the line counter for the label, not the if. gcc/testsuite/ChangeLog: * gcc.misc-tests/gcov-4.c: --- gcc/testsuite/gcc.misc-tests/gcov-4.c | 26