------- Comment #3 from fxcoudert at gcc dot gnu dot org  2009-06-06 23:27 
-------
I can confirm that at least the three tests that are run (1 to 3) PASS on
darwin with the following patch:

Index: gcc/testsuite/gcc.target/i386/excess-precision-1.c
===================================================================
--- gcc/testsuite/gcc.target/i386/excess-precision-1.c  (revision 148236)
+++ gcc/testsuite/gcc.target/i386/excess-precision-1.c  (working copy)
@@ -2,7 +2,7 @@
    through various operations.  */
 /* { dg-do run } */
 /* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O2 -fexcess-precision=standard" } */
+/* { dg-options "-O2 -mfpmath=387 -fexcess-precision=standard" } */

 #include <float.h>

Index: gcc/testsuite/gcc.target/i386/excess-precision-3.c
===================================================================
--- gcc/testsuite/gcc.target/i386/excess-precision-3.c  (revision 148236)
+++ gcc/testsuite/gcc.target/i386/excess-precision-3.c  (working copy)
@@ -2,7 +2,7 @@
    necessary.  */
 /* { dg-do run } */
 /* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O2 -fexcess-precision=standard" } */
+/* { dg-options "-O2 -mfpmath=387 -fexcess-precision=standard" } */

 #include <float.h>
 #include <stdarg.h>
Index: gcc/testsuite/gcc.target/i386/excess-precision-2.c
===================================================================
--- gcc/testsuite/gcc.target/i386/excess-precision-2.c  (revision 148236)
+++ gcc/testsuite/gcc.target/i386/excess-precision-2.c  (working copy)
@@ -1,7 +1,7 @@
 /* Excess precision tests.  Test excess precision of constants.  */
 /* { dg-do run } */
 /* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O2 -fexcess-precision=standard" } */
+/* { dg-options "-O2 -mfpmath=387 -fexcess-precision=standard" } */

 #include <float.h>



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39831

Reply via email to