[PATCH]: resolve builtin modf/frexp/logb failures on powerpc*
Kaveh R. GHAZI
ghazi@caip.rutgers.edu
Tue Feb 27 07:57:00 GMT 2007
So here's my patch for solving the powerpc failures in the following
testcases. Rationale in this posting:
http://gcc.gnu.org/ml/gcc-patches/2007-02/msg02059.html
Andrew does this solve your failures?
If so, I'll install on mainline.
Thanks,
--Kaveh
2007-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.dg/torture/builtin-frexp-1.c: On powerpc*, use
-funsafe-math-optimizations.
* gcc.dg/torture/builtin-logb-1.c: Likewise.
* gcc.dg/torture/builtin-modf-1.c: Likewise.
diff -rupw orig/egcc-SVN20070225/gcc/testsuite/gcc.dg/torture/builtin-frexp-1.c egcc-SVN20070225/gcc/testsuite/gcc.dg/torture/builtin-frexp-1.c
--- orig/egcc-SVN20070225/gcc/testsuite/gcc.dg/torture/builtin-frexp-1.c 2007-02-23 09:49:41.000000000 -0500
+++ egcc-SVN20070225/gcc/testsuite/gcc.dg/torture/builtin-frexp-1.c 2007-02-26 20:06:09.516615277 -0500
@@ -7,6 +7,7 @@
/* { dg-do link } */
/* { dg-options "-fno-finite-math-only" { target sh*-*-* } } */
+/* { dg-options "-funsafe-math-optimizations" { target powerpc*-*-* } } */
extern void link_error(int);
diff -rupw orig/egcc-SVN20070225/gcc/testsuite/gcc.dg/torture/builtin-logb-1.c egcc-SVN20070225/gcc/testsuite/gcc.dg/torture/builtin-logb-1.c
--- orig/egcc-SVN20070225/gcc/testsuite/gcc.dg/torture/builtin-logb-1.c 2007-02-23 09:49:41.000000000 -0500
+++ egcc-SVN20070225/gcc/testsuite/gcc.dg/torture/builtin-logb-1.c 2007-02-26 20:08:47.716915960 -0500
@@ -7,6 +7,7 @@
/* { dg-do link } */
/* { dg-options "-fno-finite-math-only" { target sh*-*-* } } */
+/* { dg-options "-funsafe-math-optimizations" { target powerpc*-*-* } } */
extern void link_error(int);
diff -rupw orig/egcc-SVN20070225/gcc/testsuite/gcc.dg/torture/builtin-modf-1.c egcc-SVN20070225/gcc/testsuite/gcc.dg/torture/builtin-modf-1.c
--- orig/egcc-SVN20070225/gcc/testsuite/gcc.dg/torture/builtin-modf-1.c 2007-02-26 20:09:07.827117012 -0500
+++ egcc-SVN20070225/gcc/testsuite/gcc.dg/torture/builtin-modf-1.c 2007-02-26 20:10:55.137969260 -0500
@@ -7,6 +7,7 @@
/* { dg-do link } */
/* { dg-options "-fno-finite-math-only" { target sh*-*-* } } */
+/* { dg-options "-funsafe-math-optimizations" { target powerpc*-*-* } } */
extern void link_error(int);
More information about the Gcc-patches
mailing list