From c0cf64a28761cb9014cc03f064159af02c5b12aa Mon Sep 17 00:00:00 2001 From: Victor Kaplansky Date: Sun, 7 Sep 2008 07:34:30 +0000 Subject: [PATCH] re PR testsuite/37334 (gcc.dg/fastmath-2.c doesn't work) 2008-09-07 Victor Kaplansky 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 --- gcc/testsuite/ChangeLog | 8 ++++++++ gcc/testsuite/gcc.dg/{fastmath-2.c => div-double-1.c} | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) rename gcc/testsuite/gcc.dg/{fastmath-2.c => div-double-1.c} (72%) 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 + + 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 * gcc.c-torture/execute/memcpy-bi.c: Include diff --git a/gcc/testsuite/gcc.dg/fastmath-2.c b/gcc/testsuite/gcc.dg/div-double-1.c similarity index 72% rename from gcc/testsuite/gcc.dg/fastmath-2.c rename to 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; } - -- 2.7.4