re PR testsuite/37334 (gcc.dg/fastmath-2.c doesn't work)
authorVictor Kaplansky <victork@il.ibm.com>
Sun, 7 Sep 2008 07:34:30 +0000 (07:34 +0000)
committerVictor Kaplansky <victork@gcc.gnu.org>
Sun, 7 Sep 2008 07:34:30 +0000 (07:34 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/div-double-1.c [moved from gcc/testsuite/gcc.dg/fastmath-2.c with 72% similarity]

index 273dc0d..a947f93 100644 (file)
@@ -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>
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 (file)
@@ -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;
 }
-