From 7a3b7acb7cd3f2bf70d1a44210f01e17b0010a51 Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Tue, 5 Oct 1999 03:44:26 +0000 Subject: [PATCH] flow.c (make_edges): Fix insn iteration. * flow.c (make_edges): Fix insn iteration. (find_basic_blocks): Assign NULL_RTX, not 0, to rtx. (find_basic_blocks_1): Fix spelling mistake. From-SVN: r29818 --- gcc/ChangeLog | 6 ++++++ gcc/flow.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a8a2734..e893952 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Mon Oct 4 20:25:13 1999 Anthony Green + + * flow.c (make_edges): Fix insn iteration. + (find_basic_blocks): Assign NULL_RTX, not 0, to rtx. + (find_basic_blocks_1): Fix spelling mistake. + Mon Oct 4 16:56:11 1999 Richard Henderson * tree.c (build1): Set TREE_SIDE_EFFECTS for expressions that diff --git a/gcc/flow.c b/gcc/flow.c index e23be42..4244335 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -435,7 +435,7 @@ find_basic_blocks (f, nregs, file, do_cleanup) calculate_loop_depth (f); /* Kill the data we won't maintain. */ - label_value_list = 0; + label_value_list = NULL_RTX; #ifdef ENABLE_CHECKING verify_flow_info (); @@ -633,7 +633,7 @@ find_basic_blocks_1 (f) else { /* ??? Make a special check for table jumps. The way this - happens is truely and amazingly gross. We are about to + happens is truly and amazingly gross. We are about to create a basic block that contains just a code label and an addr*vec jump insn. Worse, an addr_diff_vec creates its own natural loop. @@ -985,7 +985,7 @@ make_edges (label_value_list) if (bb->eh_beg >= 0) make_eh_edge (eh_nest_info, bb, NULL_RTX, bb->eh_beg); - for (x = bb->head; x != bb->end; x = PREV_INSN (x)) + for (x = bb->head; x != bb->end; x = NEXT_INSN (x)) if (GET_CODE (x) == NOTE && (NOTE_LINE_NUMBER (x) == NOTE_INSN_EH_REGION_BEG || NOTE_LINE_NUMBER (x) == NOTE_INSN_EH_REGION_END)) -- 2.7.4