re PR middle-end/50907 (EDGE_CROSSING incorrectly set across same section with -freorder-blocks-and-partition -fPIC -fprofile-use)
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. From-SVN: r181787
This commit is contained in:
parent
8c29866f7f
commit
d3b623c7af
4 changed files with 13 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
2011-11-28 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/50907
|
||||
* function.c (convert_jumps_to_returns): When redirecting an edge
|
||||
succ to EXIT_BLOCK_PTR, clear EDGE_CROSSING flag.
|
||||
|
||||
PR tree-optimization/50078
|
||||
* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over
|
||||
TREE_THIS_VOLATILE also from the old to new lhs resp. rhs.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
2011-11-28 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/50907
|
||||
* gcc.dg/tree-prof/pr50907.c: New test.
|
||||
|
||||
PR tree-optimization/50078
|
||||
* gcc.dg/pr50078.c: New test.
|
||||
|
||||
|
|
5
gcc/testsuite/gcc.dg/tree-prof/pr50907.c
Normal file
5
gcc/testsuite/gcc.dg/tree-prof/pr50907.c
Normal file
|
@ -0,0 +1,5 @@
|
|||
/* PR middle-end/50907 */
|
||||
/* { dg-require-effective-target freorder } */
|
||||
/* { dg-options "-O -freorder-blocks-and-partition -fschedule-insns -fselective-scheduling -fpic" { target { { powerpc*-*-* ia64-*-* x86_64-*-* } && fpic } } } */
|
||||
|
||||
#include "pr45354.c"
|
Loading…
Add table
Reference in a new issue