diff options
author | Jakub Jelinek <jakub@redhat.com> | 2011-11-28 21:04:10 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2011-11-28 21:04:10 +0000 |
commit | b89711daeac67c88e0560e8e3e216c78db015f1f (patch) | |
tree | a4a2a1f055eac32ee0a3108718f4b2ae49a28834 /gcc/function.c | |
parent | dc6ff64de18db9c63be1dd57036b6d7b372e55d6 (diff) |
PR middle-end/50907
* function.c (convert_jumps_to_returns): When redirecting an edge
succ to EXIT_BLOCK_PTR, clear EDGE_CROSSING flag.
* gcc.dg/tree-prof/pr50907.c: New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@181787 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c index 664858a29e3..6cf67c036d2 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -5670,6 +5670,7 @@ convert_jumps_to_returns (basic_block last_bb, bool simple_p, /* Fix up the CFG for the successful change we just made. */ redirect_edge_succ (e, EXIT_BLOCK_PTR); + e->flags &= ~EDGE_CROSSING; } VEC_free (basic_block, heap, src_bbs); return unconverted; |