https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68603
--- Comment #3 from Andreas Krebbel <krebbel at gcc dot gnu.org> --- 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 <ar...@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