From 791d904434fc46397ff32cb6aceb9b54e5c866c1 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 30 Sep 2013 07:44:46 +0000 Subject: re PR tree-optimization/58532 (bootstrap failure with BOOT_CFLAGS="-g -O3") 2013-09-30 Richard Biener PR middle-end/58532 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements before looking for setjmp-like calls. * g++.dg/torture/pr58552.C: New testcase. From-SVN: r203024 --- gcc/tree-cfg.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/tree-cfg.c') diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index be66181..f0dd2bc 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -1013,6 +1013,9 @@ make_abnormal_goto_edges (basic_block bb, bool for_call) break; } } + if (!gsi_end_p (gsi) + && is_gimple_debug (gsi_stmt (gsi))) + gsi_next_nondebug (&gsi); if (!gsi_end_p (gsi)) { /* Make an edge to every setjmp-like call. */ -- cgit v1.1