[Bug gcov-profile/106090] [GCOV] Wrong coverage for loop statements

2022-07-04 Thread njuwy at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106090 --- Comment #6 from Yang Wang --- (In reply to Martin Liška from comment #4) > > do_it() is indeed called 4 times,but I wonder how the coverage statistiscs > > of the for-statement is calculated. It doesn't become 5 untill the > > for-stamentmen

[Bug gcov-profile/106090] [GCOV] Wrong coverage for loop statements

2022-07-04 Thread njuwy at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106090 --- Comment #5 from Yang Wang --- (In reply to Martin Liška from comment #4) > > do_it() is indeed called 4 times,but I wonder how the coverage statistiscs > > of the for-statement is calculated. It doesn't become 5 untill the > > for-stamentmen

[Bug gcov-profile/106090] [GCOV] Wrong coverage for loop statements

2022-07-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106090 --- Comment #4 from Martin Liška --- > do_it() is indeed called 4 times,but I wonder how the coverage statistiscs > of the for-statement is calculated. It doesn't become 5 untill the > for-stamentment is completed. We count a line every time th

[Bug gcov-profile/106090] [GCOV] Wrong coverage for loop statements

2022-07-02 Thread njuwy at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106090 --- Comment #3 from Yang Wang --- (In reply to Yang Wang from comment #2) > (In reply to Martin Liška from comment #1) > > No, it's correct as it only contains do_it() call that is triggered the same > > number times as line 20 minus one. > > (

[Bug gcov-profile/106090] [GCOV] Wrong coverage for loop statements

2022-07-02 Thread njuwy at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106090 --- Comment #2 from Yang Wang --- (In reply to Martin Liška from comment #1) > No, it's correct as it only contains do_it() call that is triggered the same > number times as line 20 minus one. (In reply to Martin Liška from comment #1) > No, it

[Bug gcov-profile/106090] [GCOV] Wrong coverage for loop statements

2022-06-27 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106090 Martin Liška changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED