This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r231146 - in /trunk/gcc/cp: ChangeLog cp-gimpli...
- From: krebbel at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 02 Dec 2015 07:26:30 -0000
- Subject: r231146 - in /trunk/gcc/cp: ChangeLog cp-gimpli...
Author: krebbel
Date: Wed Dec 2 07:26:30 2015
New Revision: 231146
URL: https://gcc.gnu.org/viewcvs?rev=231146&root=gcc&view=rev
Log:
[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.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-gimplify.c