diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2005-11-13 06:18:48 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2005-11-12 22:18:48 -0800 |
commit | 646c38e94ef62cff1e755f6d4fe67e143d7c6739 (patch) | |
tree | 729cf1e539495f2cad494db03c7ad9f05b719cec /gcc/testsuite/gcc.dg | |
parent | a8db974a4a5e7b7f0fe18c05328bbcdd21037384 (diff) | |
download | gcc-646c38e94ef62cff1e755f6d4fe67e143d7c6739.zip gcc-646c38e94ef62cff1e755f6d4fe67e143d7c6739.tar.gz gcc-646c38e94ef62cff1e755f6d4fe67e143d7c6739.tar.bz2 |
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
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr24820.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr24820.c b/gcc/testsuite/gcc.dg/pr24820.c new file mode 100644 index 0000000..0482ca3 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr24820.c @@ -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; +} + |