aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Green <green@cygnus.com>1999-10-05 03:44:26 +0000
committerAnthony Green <green@gcc.gnu.org>1999-10-05 03:44:26 +0000
commit7a3b7acb7cd3f2bf70d1a44210f01e17b0010a51 (patch)
tree09bfdef8adbdd8123d44053387c748e66b9b3330
parent1fef02f64a6dd30c90d829df4de8b8706e4e3c02 (diff)
downloadgcc-7a3b7acb7cd3f2bf70d1a44210f01e17b0010a51.zip
gcc-7a3b7acb7cd3f2bf70d1a44210f01e17b0010a51.tar.gz
gcc-7a3b7acb7cd3f2bf70d1a44210f01e17b0010a51.tar.bz2
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/flow.c6
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 <green@cygnus.com>
+
+ * 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 <rth@cygnus.com>
* 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))