[PR68603] Associate conditional C++ loop's back-jump with start, not body
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Wed, 2 Dec 2015 07:26:30 +0000 (07:26 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Wed, 2 Dec 2015 07:26:30 +0000 (07:26 +0000)
commitfe78aa0474d9469384951dbddcd5aeea5f40c03c
tree22b8c4643f1392c93c1f11bdb98955d9afa2a630
parentdf096e508e95abecfacdf0c18abae8807b56cc11
[PR68603] Associate conditional C++ loop's back-jump with start, not body

SVN commit r230979 always associates a loop's back-jump with the start
of the loop body.  This caused a regression for gcov with conditional
loops, because then the loop body appears to be covered twice per
iteration.

2015-12-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>

PR gcov-profile/68603
* cp-gimplify.c (genericize_cp_loop): For the back-jump's location
use the start of the loop body only if the loop is unconditional.

From-SVN: r231146
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c