]> git.ipfire.org Git - thirdparty/gcc.git/commit
retain debug stmt order when moving to successors
authorAlexandre Oliva <oliva@adacore.com>
Sun, 25 Jul 2021 02:05:33 +0000 (23:05 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Tue, 17 Aug 2021 11:00:40 +0000 (08:00 -0300)
commit6bcbf80c6e2bd8a60d88bbcac3d70ffb67f4888f
tree1dc74919abb9a239ce1bddda67dd6a933e8efe88
parent3ed8da759b52708f6874af2afc6ab56b1fb00cec
retain debug stmt order when moving to successors

We iterate over debug stmts from the last one in new_bb, and we insert
them before the first post-label stmt in each dest block, without
moving the insertion iterator, so they end up reversed.  Moving the
insertion iterator fixes this.

for  gcc/ChangeLog

* tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
reverse debug stmts.
gcc/tree-inline.c