re PR debug/90197 (Cannot step through simple loop at -O -g)
authorJakub Jelinek <jakub@redhat.com>
Wed, 15 May 2019 21:41:35 +0000 (23:41 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 15 May 2019 21:41:35 +0000 (23:41 +0200)
commitc42b72a7ddc52c65a0a6b3f9127224c8770ac6da
tree8484d48e0ab4506ce0c9e9dfbf430cf6a477a38b
parente5d7010bb30b136e06f31edd197b6dca9f04f7cb
re PR debug/90197 (Cannot step through simple loop at -O -g)

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.

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