re PR middle-end/24820 (SEGV in integer_valued_real_p at gcc/builtins.c:6711)
2005-11-13 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/24820 * testsuite/gcc.dg/pr24820.c: New test. 2005-11-13 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/24820 * builtins.c (integer_valued_real_p): Add break in REAL_CST having TREE_OVERFLOW set. From-SVN: r106851
This commit is contained in:
parent
a8db974a4a
commit
646c38e94e
@ -1,3 +1,9 @@
|
||||
2005-11-13 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR middle-end/24820
|
||||
* builtins.c (integer_valued_real_p): Add break in
|
||||
REAL_CST having TREE_OVERFLOW set.
|
||||
|
||||
2005-11-13 Zdenek Dvorak <dvorakz@suse.cz>
|
||||
|
||||
* tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
|
||||
|
@ -6704,6 +6704,7 @@ integer_valued_real_p (tree t)
|
||||
real_trunc (&cint, TYPE_MODE (TREE_TYPE (t)), &c);
|
||||
return real_identical (&c, &cint);
|
||||
}
|
||||
break;
|
||||
|
||||
case NOP_EXPR:
|
||||
{
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-11-13 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR middle-end/24820
|
||||
* testsuite/gcc.dg/pr24820.c: New test.
|
||||
|
||||
2005-11-13 Zdenek Dvorak <dvorakz@suse.cz>
|
||||
|
||||
* gcc.dg/tree-ssa/loop-2.c: Fix outcome.
|
||||
|
12
gcc/testsuite/gcc.dg/pr24820.c
Normal file
12
gcc/testsuite/gcc.dg/pr24820.c
Normal file
@ -0,0 +1,12 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -ffast-math" } */
|
||||
|
||||
double floor (double);
|
||||
double bar (double sum)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 256; i++)
|
||||
sum += floor (0.5 + (i - 128));
|
||||
return sum;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user