re PR tree-optimization/44182 (-fcompare-debug failure (length) with -O1)
PR tree-optimization/44182 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that newly needs to end a bb is followed by debug stmts, instead return true from the function at the end. (maybe_move_debug_stmts_to_successors): New function. (copy_cfg_body): Call it if copy_edges_for_bb returned true. * g++.dg/debug/pr44182.C: New test. From-SVN: r160074
Showing
gcc/testsuite/g++.dg/debug/pr44182.C
0 → 100644
Please
register
or
sign in
to comment