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:
Andrew Pinski 2005-11-13 06:18:48 +00:00 committed by Andrew Pinski
parent a8db974a4a
commit 646c38e94e
4 changed files with 24 additions and 0 deletions

View File

@ -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

View File

@ -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:
{

View File

@ -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.

View 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;
}