This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: add folding of builtin modf


On Mon, 26 Feb 2007, Kaz Kojima wrote:

> Hi,
>
> "Kaveh R. GHAZI" <ghazi@caip.rutgers.edu> wrote:
> > 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
> >
> > 	* builtins.c (fold_builtin_modf): New.
> > 	(fold_builtin_2): Use it.
> >
> > testsuite:
> > 	* gcc.dg/torture/builtin-modf-1.c: New test.
>
> It seems that this test needs -fno-finite-math-only on sh*-*-*.
>
> http://gcc.gnu.org/ml/gcc-testresults/2007-02/msg01029.html
>
> Regards,
> 	kaz


Oops sorry, got it:


Index: gcc.dg/torture/builtin-modf-1.c
===================================================================
--- gcc.dg/torture/builtin-modf-1.c	(revision 122344)
+++ gcc.dg/torture/builtin-modf-1.c	(working copy)
@@ -6,6 +6,7 @@
    Origin: Kaveh R. Ghazi,  February 23, 2007.  */

 /* { dg-do link } */
+/* { dg-options "-fno-finite-math-only" { target sh*-*-* } } */

 extern void link_error(int);

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 122344)
+++ ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2007-02-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+	* gcc.dg/torture/builtin-modf-1.c: Use -fno-finite-math-only on
+	sh* targets.
+
 2007-02-26  Thomas Koenig  <Thomas.Koenig@online.de>

 	PR fortran/30865


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]