Commit 200eafbf by Richard Biener Committed by Richard Biener

re PR tree-optimization/71477 (gcc ICE at -O3 on valid code on x86_64-linux-gnu with “seg fault”)

2016-06-10  Richard Biener  <rguenther@suse.de>

	PR middle-end/71477
	* cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.

	* gcc.dg/torture/pr71477.c: New testcase.

From-SVN: r237287
parent 5eeb039f
2016-06-10 Richard Biener <rguenther@suse.de>
PR middle-end/71477
* cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
* df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
......
......@@ -331,6 +331,7 @@ alloc_loop (void)
loop->exits->next = loop->exits->prev = loop->exits;
loop->can_be_parallel = false;
loop->nb_iterations_upper_bound = 0;
loop->nb_iterations_likely_upper_bound = 0;
loop->nb_iterations_estimate = 0;
return loop;
}
......
2016-06-10 Richard Biener <rguenther@suse.de>
PR middle-end/71477
* gcc.dg/torture/pr71477.c: New testcase.
2016-06-09 Julia Koval <julia.koval@intel.com>
* gcc.target/i386/interrupt-12.c: Fix test for -fpic and corei7.
......
/* { dg-do compile } */
#define N 6
int a;
void fn1()
{
int k = 0;
for (; k < N;)
for (a = 0; a < N; k++)
a = k + N;
}
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