On behalf of Tianwei, for the following change:
authorTianwei Sheng <tianweis@google.com>
Tue, 8 Jul 2008 17:08:40 +0000 (17:08 +0000)
committerSeongbae Park <spark@gcc.gnu.org>
Tue, 8 Jul 2008 17:08:40 +0000 (17:08 +0000)
2008-07-07  Tianwei Sheng  <tianweis@google.com>

* df-core.c (df_remove_problem): Adjust the access to avoid out of
bounds array access.

From-SVN: r137634

gcc/ChangeLog
gcc/df-core.c

index b93a55d879d2978d53752cb85be2c26e97c8f2f4..64888e9412d44e9b863614aa76fa80280e0f9550 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-07  Tianwei Sheng  <tianweis@google.com>
+
+       * df-core.c (df_remove_problem): Adjust the access to avoid out of
+       bounds array access.
+
 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
 
        * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P
index 8e6a4e148254e6d2b0f1a893abc270deb46bbff2..1ea301222545e08c1c1d6880055594982fbe3d08 100644 (file)
@@ -622,7 +622,7 @@ df_remove_problem (struct dataflow *dflow)
        int j;
        for (j = i + 1; j < df->num_problems_defined; j++)
          df->problems_in_order[j-1] = df->problems_in_order[j];
-       df->problems_in_order[j] = NULL;
+       df->problems_in_order[j-1] = NULL;
        df->num_problems_defined--;
        break;
       }