]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PR68603] Associate conditional C++ loop's back-jump with start, not body
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Dec 2015 07:26:30 +0000 (07:26 +0000)
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Dec 2015 07:26:30 +0000 (07:26 +0000)
commit1cb731ad632dc44a8141519c21a1b564b310e150
tree22b8c4643f1392c93c1f11bdb98955d9afa2a630
parentd9b0fca3f3f301344a3181ab14472b530a6da05f
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231146 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c