Commit bc369dbd by Richard Biener Committed by Richard Biener

re PR tree-optimization/69574 (gcc ICE at -O2 and -O3 on x86_64-linux-gnu in…

re PR tree-optimization/69574 (gcc ICE at -O2 and -O3 on x86_64-linux-gnu in hide_evolution_in_other_loops_than_loop)

2016-02-01  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/69574
	* tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
	of asserting return chrec_dont_know.

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

From-SVN: r233039
parent 0b2e1bfa
2016-02-01 Richard Biener <rguenther@suse.de>
PR tree-optimization/69574
* tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
of asserting return chrec_dont_know.
2016-02-01 Martin Liska <mliska@suse.cz>
* mem-stats-traits.h: Add copyright header.
......
2016-02-01 Richard Biener <rguenther@suse.de>
PR tree-optimization/69574
* gcc.dg/torture/pr69574.c: New testcase.
2016-02-01 Richard Biener <rguenther@suse.de>
PR tree-optimization/69579
* gcc.dg/setjmp-6.c: New testcase.
......
/* { dg-do compile } */
typedef unsigned mytype;
struct S {
mytype *pu;
};
mytype f(struct S *e)
{
mytype x;
if(&x != e->pu)
__builtin_memcpy(&x, e->pu, sizeof(unsigned));
return x;
}
......@@ -728,12 +728,12 @@ hide_evolution_in_other_loops_than_loop (tree chrec,
/* There is no evolution in this loop. */
return initial_condition (chrec);
else if (flow_loop_nested_p (loop, chloop))
return hide_evolution_in_other_loops_than_loop (CHREC_LEFT (chrec),
loop_num);
else
{
gcc_assert (flow_loop_nested_p (loop, chloop));
return hide_evolution_in_other_loops_than_loop (CHREC_LEFT (chrec),
loop_num);
}
return chrec_dont_know;
default:
return chrec;
......
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