re PR middle-end/68570 (ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu)

PR middle-end/68570
	* gcc.dg/torture/pr68570.c: New test.

From-SVN: r231163
This commit is contained in:
Marek Polacek 2015-12-02 10:22:23 +00:00 committed by Marek Polacek
parent 3810ff24db
commit 1a99e748a3
2 changed files with 40 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2015-12-02 Marek Polacek <polacek@redhat.com>
PR middle-end/68570
* gcc.dg/torture/pr68570.c: New test.
2015-12-02 Richard Biener <rguenther@suse.de> 2015-12-02 Richard Biener <rguenther@suse.de>
PR tree-optimization/68625 PR tree-optimization/68625

View File

@ -0,0 +1,35 @@
/* PR middle-end/68570 */
/* { dg-do compile } */
int a, d, e, f, h, i, k;
void
fn1 ()
{
char m;
for (;;)
{
for (;;)
{
e = f = 1;
if (i)
d = h = 0;
else
a = 0;
break;
}
k = 0;
if (f)
a = 3;
if (d)
f = 0;
if (a > (i < 1))
{
if (e)
break;
}
else
i = m;
k = i ? a : i;
}
}