https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90197
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed May 15 21:41:35 2019 New Revision: 271269 URL: https://gcc.gnu.org/viewcvs?rev=271269&root=gcc&view=rev Log: PR debug/90197 * cp-gimplify.c (genericize_cp_loop): Emit a DEBUG_BEGIN_STMT before the condition (or if missing or constant non-zero at the end of the loop. Emit a DEBUG_BEGIN_STMT before the increment expression if any. Don't call protected_set_expr_location on incr if it already has a location. Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-gimplify.c