summaryrefslogtreecommitdiff
path: root/gcc/lcm.c
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-30 23:40:15 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-30 23:40:15 +0000
commit4b93bd3c7957fc4a8c220c7dbb804d05661545c6 (patch)
treef764cf31cd0c1686457efea2c52d1a7ca3fe7755 /gcc/lcm.c
parentcd31eb433897580cdd2434614b47b9d37f783afa (diff)
downloadgcc-4b93bd3c7957fc4a8c220c7dbb804d05661545c6.tar.gz
PR bootstrap/17761
* lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and FOR_EACH_EDGE macros. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88368 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lcm.c')
-rw-r--r--gcc/lcm.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/lcm.c b/gcc/lcm.c
index c3e5f93313a..b568b06b99b 100644
--- a/gcc/lcm.c
+++ b/gcc/lcm.c
@@ -1025,17 +1025,18 @@ optimize_mode_switching (FILE *file)
exit block, so that we can note that there NORMAL_MODE is supplied /
required. */
edge eg;
- post_entry = split_edge (ENTRY_BLOCK_PTR->succ);
+ edge_iterator ei;
+ post_entry = split_edge (EDGE_SUCC (ENTRY_BLOCK_PTR, 0));
/* The only non-call predecessor at this stage is a block with a
fallthrough edge; there can be at most one, but there could be
none at all, e.g. when exit is called. */
- for (pre_exit = 0, eg = EXIT_BLOCK_PTR->pred; eg; eg = eg->pred_next)
+ pre_exit = 0;
+ FOR_EACH_EDGE (eg, ei, EXIT_BLOCK_PTR->preds)
if (eg->flags & EDGE_FALLTHRU)
{
regset live_at_end = eg->src->global_live_at_end;
- if (pre_exit)
- abort ();
+ gcc_assert (!pre_exit);
pre_exit = split_edge (eg);
COPY_REG_SET (pre_exit->global_live_at_start, live_at_end);
COPY_REG_SET (pre_exit->global_live_at_end, live_at_end);