This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

[patch RFA][gfortran testsuite] Tweak isnan/nan_1.f90 for SH


Hi,

SH needs -mieee option for NaNs.  The attached patch is to
add -mieee option to nan/isnan_1.f90 tests on that target.
Tested also on i686-pc-linux-gnu with no regressions.
I'd like to get an approval for this patch from fortran
maintainers, since I know little about gfortran testsuite.

Regards,
	kaz
--
2007-08-28  Kaz Kojima  <kkojima@gcc.gnu.org>

	* gfortran.dg/isnan_1.f90: Add -mieee for sh.
	* gfortran.dg/nan_1.f90: Likewise.

diff -uprN ORIG/trunk/gcc/testsuite/gfortran.dg/isnan_1.f90 LOCAL/trunk/gcc/testsuite/gfortran.dg/isnan_1.f90
--- ORIG/trunk/gcc/testsuite/gfortran.dg/isnan_1.f90	2007-08-06 07:56:34.000000000 +0900
+++ LOCAL/trunk/gcc/testsuite/gfortran.dg/isnan_1.f90	2007-08-27 22:45:11.000000000 +0900
@@ -1,6 +1,8 @@
 ! Test for the ISNAN intrinsic
 !
 ! { dg-do run }
+! { dg-options "-pedantic-errors -mieee" { target sh*-*-* } }
+!
   implicit none
   real :: x
   x = -1.0
diff -uprN ORIG/trunk/gcc/testsuite/gfortran.dg/nan_1.f90 LOCAL/trunk/gcc/testsuite/gfortran.dg/nan_1.f90
--- ORIG/trunk/gcc/testsuite/gfortran.dg/nan_1.f90	2007-08-07 10:43:51.000000000 +0900
+++ LOCAL/trunk/gcc/testsuite/gfortran.dg/nan_1.f90	2007-08-27 22:43:57.000000000 +0900
@@ -2,6 +2,7 @@
 ! as arguments
 !
 ! { dg-do run }
+! { dg-options "-pedantic-errors -mieee" { target sh*-*-* } } 
 !
 module aux2
   interface isnan


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