flow.c (make_edges): Fix insn iteration.
authorAnthony Green <green@cygnus.com>
Tue, 5 Oct 1999 03:44:26 +0000 (03:44 +0000)
committerAnthony Green <green@gcc.gnu.org>
Tue, 5 Oct 1999 03:44:26 +0000 (03:44 +0000)
* 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
gcc/flow.c

index a8a2734..e893952 100644 (file)
@@ -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
index e23be42..4244335 100644 (file)
@@ -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))