Re: retain debug stmt order when moving to successors

2021-08-17 Thread Alexandre Oliva
On Jul 28, 2021, Richard Biener wrote: > OK. Thanks, I've finally put this in. Sorry about the delay. > On Wed, Jul 28, 2021 at 10:12 AM Alexandre Oliva wrote: >> * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't >> reverse debug stmts. -- Alexandre Oliva, happy hacker

Re: retain debug stmt order when moving to successors

2021-07-28 Thread Richard Biener via Gcc-patches
On Wed, Jul 28, 2021 at 10:12 AM Alexandre Oliva wrote: > > > 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

retain debug stmt order when moving to successors

2021-07-28 Thread Alexandre Oliva
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. Regstrapped on x86_64-linux-gnu. Ok to install? for gcc/C