Test for not existence of a negative loop (PR gcov-profile/90380).
authorMartin Liska <mliska@suse.cz>
Mon, 13 May 2019 07:04:58 +0000 (09:04 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 13 May 2019 07:04:58 +0000 (07:04 +0000)
commit4af3b0ea1bcc3096e21fc1687fa78a294b232454
treeb430fb0b735ae786397a285b75f1662479c3650f
parent15f3429d31ccdf5568b1e4c300fbc4d9ca89a36a
Test for not existence of a negative loop (PR gcov-profile/90380).

2019-05-13  Martin Liska  <mliska@suse.cz>

PR gcov-profile/90380
* gcov.c (enum loop_type): Remove the enum and
the operator.
(handle_cycle): Assert that we should not reach
a negative count.
(circuit): Use loop_found instead of a tri-state loop_type.
(get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
happen.

From-SVN: r271116
gcc/ChangeLog
gcc/gcov.c