re PR tree-optimization/33649 (cc1 segfaults when multiple tree opts disabled)
authorMark Mitchell <mark@codesourcery.com>
Fri, 2 Jan 2009 18:04:28 +0000 (18:04 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 2 Jan 2009 18:04:28 +0000 (18:04 +0000)
PR 33649
* tree-ssa-pre.c (compute_antic): Correct loop bounds.

From-SVN: r143014

gcc/ChangeLog
gcc/tree-ssa-pre.c

index 9f3f0ee7ef7c8984c752404b63cb141079d21294..622b95f1e0443d7795a855dd6ef608ade5627898 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-02  Mark Mitchell  <mark@codesourcery.com>
+
+       PR 33649
+       * tree-ssa-pre.c (compute_antic): Correct loop bounds.
+
 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/38690
index 2fb4710d86ab012627e7191fc8e78ac6c1cf1de3..0a4fb6ddc101b61ca0cdd5382188b418afdb4433 100644 (file)
@@ -2394,7 +2394,7 @@ compute_antic (void)
        fprintf (dump_file, "Starting iteration %d\n", num_iterations);
       num_iterations++;
       changed = false;
-      for (i = 0; i < last_basic_block - NUM_FIXED_BLOCKS; i++)
+      for (i = 0; i < n_basic_blocks - NUM_FIXED_BLOCKS; i++)
        {
          if (TEST_BIT (changed_blocks, postorder[i]))
            {
@@ -2425,7 +2425,7 @@ compute_antic (void)
            fprintf (dump_file, "Starting iteration %d\n", num_iterations);
          num_iterations++;
          changed = false;
-         for (i = 0; i < last_basic_block - NUM_FIXED_BLOCKS; i++)
+         for (i = 0; i < n_basic_blocks - NUM_FIXED_BLOCKS; i++)
            {
              if (TEST_BIT (changed_blocks, postorder[i]))
                {