Skip to content
Snippets Groups Projects
Commit 6bcbf80c authored by Alexandre Oliva's avatar Alexandre Oliva Committed by Alexandre Oliva
Browse files

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.
parent 3ed8da75
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment