Commit 0b355794 by Mark Mitchell Committed by Mark Mitchell

re PR tree-optimization/33649 (cc1 segfaults when multiple tree opts disabled)

	PR 33649
	* tree-ssa-pre.c (compute_antic): Correct loop bounds.

From-SVN: r143014
parent 0cf0d02b
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
......@@ -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]))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment