aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorVictor Kaplansky <victork@il.ibm.com>2008-09-07 07:34:30 +0000
committerVictor Kaplansky <victork@gcc.gnu.org>2008-09-07 07:34:30 +0000
commitc0cf64a28761cb9014cc03f064159af02c5b12aa (patch)
treed244b013e0487d33fbb16da1d7d1b34df306bb92 /gcc
parent5f195f0c724088199c5eb18565fea7171a83462c (diff)
downloadgcc-c0cf64a28761cb9014cc03f064159af02c5b12aa.zip
gcc-c0cf64a28761cb9014cc03f064159af02c5b12aa.tar.gz
gcc-c0cf64a28761cb9014cc03f064159af02c5b12aa.tar.bz2
re PR testsuite/37334 (gcc.dg/fastmath-2.c doesn't work)
2008-09-07 Victor Kaplansky <victork@il.ibm.com> PR testsuite/37334 * gcc/testsuite/gcc.dg/fastmath-2.c: Add volatile to definition of b, change -ffast-math to -ffinite-math-only and rename test to ... * gcc/testsuite/gcc.dg/div-double-1.c: ... this. From-SVN: r140082
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog8
-rw-r--r--gcc/testsuite/gcc.dg/div-double-1.c (renamed from gcc/testsuite/gcc.dg/fastmath-2.c)5
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 273dc0d..a947f93 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2008-09-07 Victor Kaplansky <victork@il.ibm.com>
+
+ PR testsuite/37334
+ * gcc/testsuite/gcc.dg/fastmath-2.c: Add volatile to
+ definition of b, change -ffast-math to -ffinite-math-only
+ and rename test to ...
+ * gcc/testsuite/gcc.dg/div-double-1.c: ... this.
+
2008-09-06 Jeff Law <law@redhat.com>
* gcc.c-torture/execute/memcpy-bi.c: Include <string.h>
diff --git a/gcc/testsuite/gcc.dg/fastmath-2.c b/gcc/testsuite/gcc.dg/div-double-1.c
index 2003cf9..0cb8268 100644
--- a/gcc/testsuite/gcc.dg/fastmath-2.c
+++ b/gcc/testsuite/gcc.dg/div-double-1.c
@@ -1,10 +1,10 @@
/* { dg-do run } */
-/* { dg-options "-O2 -ffast-math" } */
+/* { dg-options "-O2 -ffinite-math-only" } */
extern void abort (void);
volatile double a = 2.002083e-146;
-double b;
+volatile double b;
int
main()
@@ -15,4 +15,3 @@ main()
abort ();
return 0;
}
-