diff options
author | Richard Biener <rguenther@suse.de> | 2013-09-30 07:44:46 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2013-09-30 07:44:46 +0000 |
commit | 791d904434fc46397ff32cb6aceb9b54e5c866c1 (patch) | |
tree | 247af8bcead132510254cb0f2cb1e3344517bb50 /gcc/tree-cfg.c | |
parent | cb2c51a4976f31138d74715226d0a4986afadfaf (diff) | |
download | gcc-791d904434fc46397ff32cb6aceb9b54e5c866c1.zip gcc-791d904434fc46397ff32cb6aceb9b54e5c866c1.tar.gz gcc-791d904434fc46397ff32cb6aceb9b54e5c866c1.tar.bz2 |
re PR tree-optimization/58532 (bootstrap failure with BOOT_CFLAGS="-g -O3")
2013-09-30 Richard Biener <rguenther@suse.de>
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
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 3 |
1 files changed, 3 insertions, 0 deletions
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. */ |