cfganal.c (flow_depth_first_order_compute): Always increment dfsnum.
authorJohn Wehle <john@feith.com>
Wed, 12 Dec 2001 04:56:30 +0000 (04:56 +0000)
committerJohn Wehle <wehle@gcc.gnu.org>
Wed, 12 Dec 2001 04:56:30 +0000 (04:56 +0000)
* cfganal.c (flow_depth_first_order_compute): Always
increment dfsnum.

From-SVN: r47919

gcc/ChangeLog
gcc/cfganal.c

index 01f8bd4a327767155c8ffdf52fddee481e8e3407..eb6ddb83337fd0286d622f8c0e62b7eb46353bdb 100644 (file)
@@ -1,3 +1,8 @@
+Tue Dec 11 23:54:27 EST 2001  John Wehle  (john@feith.com)
+
+       * cfganal.c (flow_depth_first_order_compute): Always
+       increment dfsnum.
+
 2001-11-30 Alan Matsuoka <alanm@redhat.com>
 
        * combine.c (combine_simplify_rtx) : Can't simplify 
index 6924fd39246d43050ce5ebd32130983b6de23bde..3ec6f6e76006a0ed96388cd256adaffa941f25c1 100644 (file)
@@ -874,7 +874,9 @@ flow_depth_first_order_compute (dfs_order, rc_order)
          SET_BIT (visited, dest->index);
 
          if (dfs_order)
-           dfs_order[dfsnum++] = dest->index;
+           dfs_order[dfsnum] = dest->index;
+
+         dfsnum++;
 
          if (dest->succ)
            {