aboutsummaryrefslogtreecommitdiff
path: root/gcc/bt-load.c
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@gcc.gnu.org>2006-05-14 22:51:12 +0000
committerKaz Kojima <kkojima@gcc.gnu.org>2006-05-14 22:51:12 +0000
commita17097692bf3ee04a30b9f190c160e93160a7aa0 (patch)
tree658bfbdad5740bc4b2a0ef681c893f067240bb75 /gcc/bt-load.c
parentc497db75bae31d76a5402644ef247c2dc48ad801 (diff)
downloadgcc-a17097692bf3ee04a30b9f190c160e93160a7aa0.zip
gcc-a17097692bf3ee04a30b9f190c160e93160a7aa0.tar.gz
gcc-a17097692bf3ee04a30b9f190c160e93160a7aa0.tar.bz2
re PR rtl-optimization/27406 (gcc.c-torture/execute/built-in-setjmp.c fails on sh64-*-linux-gnu with -O2)
PR rtl-optimization/27406 * bt-load.c (migrate_btr_def): Skip the block having abnormal edges. From-SVN: r113766
Diffstat (limited to 'gcc/bt-load.c')
-rw-r--r--gcc/bt-load.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/bt-load.c b/gcc/bt-load.c
index 70975e4..88a6806 100644
--- a/gcc/bt-load.c
+++ b/gcc/bt-load.c
@@ -1339,6 +1339,15 @@ migrate_btr_def (btr_def def, int min_cost)
/* Try to move the instruction that sets the target register into
basic block TRY. */
int try_freq = basic_block_freq (try);
+ edge_iterator ei;
+ edge e;
+
+ /* If TRY has abnormal edges, skip it. */
+ FOR_EACH_EDGE (e, ei, try->succs)
+ if (e->flags & EDGE_COMPLEX)
+ break;
+ if (e)
+ continue;
if (dump_file)
fprintf (dump_file, "trying block %d ...", try->index);