re PR tree-optimization/57864 (ICE in bitmap_set_replace_value, at tree-ssa-pre.c:862)
2014-05-07 Richard Biener <rguenther@suse.de> PR tree-optimization/57864 * gcc.dg/torture/pr57864.c: New testcase. From-SVN: r210142
This commit is contained in:
parent
faeb5f9116
commit
9c13483b14
2 changed files with 42 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-05-07 Richard Biener <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/57864
|
||||
* gcc.dg/torture/pr57864.c: New testcase.
|
||||
|
||||
2014-05-06 Jerry DeLisle <jvdelisle@gcc.gnu>
|
||||
|
||||
PR libfortran/61049
|
||||
|
|
37
gcc/testsuite/gcc.dg/torture/pr57864.c
Normal file
37
gcc/testsuite/gcc.dg/torture/pr57864.c
Normal file
|
@ -0,0 +1,37 @@
|
|||
/* { dg-do compile } */
|
||||
|
||||
union U {
|
||||
double val;
|
||||
union U *ptr;
|
||||
};
|
||||
|
||||
union U *d;
|
||||
double a;
|
||||
int b;
|
||||
int c;
|
||||
|
||||
static void fn1(union U *p1, int p2, _Bool p3)
|
||||
{
|
||||
union U *e;
|
||||
|
||||
if (p2 == 0)
|
||||
a = ((union U*)((unsigned long)p1 & ~1))->val;
|
||||
|
||||
if (b) {
|
||||
e = p1;
|
||||
} else if (c) {
|
||||
e = ((union U*)((unsigned long)p1 & ~1))->ptr;
|
||||
d = e;
|
||||
} else {
|
||||
e = 0;
|
||||
d = ((union U*)0)->ptr;
|
||||
}
|
||||
|
||||
fn1 (e, 0, 0);
|
||||
fn1 (0, 0, p3);
|
||||
}
|
||||
|
||||
void fn2 (void)
|
||||
{
|
||||
fn1 (0, 0, 0);
|
||||
}
|
Loading…
Add table
Reference in a new issue