Commit b616a16e by Uros Bizjak

re PR tree-optimization/32821 (tree-if-conv:combine_blocks with…

re PR tree-optimization/32821 (tree-if-conv:combine_blocks with -ftree-dump-tree-all-details fails on ICE in compilation: segfault)

	PR tree-optimization/32821
	* tree_if_conv.c (combine_blocks): Use alloc_stmt_list instead of
	NULL in the call to set_bb_stmt_list.

testsuite/ChangeLog:

	PR tree-optimization/32821
	* gcc.dg/tree-ssa/pr32821.c: New file.

From-SVN: r128235
parent c664bb1b
2007-09-07 Richard Guenther <rguenther@suse.de>
Uros Bizjak <ubizjak@gmail.com>
PR tree-optimization/32821
* tree_if_conv.c (combine_blocks): Use alloc_stmt_list instead of
NULL in the call to set_bb_stmt_list.
2007-09-07 Richard Sandiford <richard@codesourcery.com> 2007-09-07 Richard Sandiford <richard@codesourcery.com>
* config/mips/mips.c (build_mips16_call_stub): Emit all direct * config/mips/mips.c (build_mips16_call_stub): Emit all direct
2007-09-07 Uros Bizjak <ubizjak@gmail.com>
PR tree-optimization/32821
* gcc.dg/tree-ssa/pr32821.c: New file.
2007-09-07 Richard Sandiford <richard@codesourcery.com> 2007-09-07 Richard Sandiford <richard@codesourcery.com>
* gcc.dg/attr-alias-3.c: Use real asm for MIPS. * gcc.dg/attr-alias-3.c: Use real asm for MIPS.
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize -fdump-tree-ifcvt-details" } */
void
main1 (int *arr, int n, int a, int b)
{
int i;
for (i = 0; i < n; i++)
{
int m = arr[i];
arr[i] = (m < a ? m - a : b);
}
}
/* { dg-final { cleanup-tree-dump "ifcvt" } } */
...@@ -985,7 +985,7 @@ combine_blocks (struct loop *loop) ...@@ -985,7 +985,7 @@ combine_blocks (struct loop *loop)
/* Update stmt list. */ /* Update stmt list. */
last = tsi_last (bb_stmt_list (merge_target_bb)); last = tsi_last (bb_stmt_list (merge_target_bb));
tsi_link_after (&last, bb_stmt_list (bb), TSI_NEW_STMT); tsi_link_after (&last, bb_stmt_list (bb), TSI_NEW_STMT);
set_bb_stmt_list (bb, NULL); set_bb_stmt_list (bb, alloc_stmt_list());
delete_basic_block (bb); delete_basic_block (bb);
} }
......
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