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]

[patch committed][gfortran testsuite] Tweak a few tests for SH


I've committed the attached patch for SH targets which require
-mieee option for NaNs.  The patch is tested on i686-pc-linux-gnu
with no regressions.

Regards,
	kaz
--
2007-12-06  Kaz Kojima  <kkojima@gcc.gnu.org>

	* gfortran.dg/nan_2.f90: Add -mieee for sh.
	* gfortran.dg/nearest_2.f90: Likewise.
	* gfortran.dg/nearest_3.f90: Likewise.

diff -uprN ORIG/trunk/gcc/testsuite/gfortran.dg/nan_2.f90 LOCAL/trunk/gcc/testsuite/gfortran.dg/nan_2.f90
--- ORIG/trunk/gcc/testsuite/gfortran.dg/nan_2.f90	2007-12-06 08:02:31.000000000 +0900
+++ LOCAL/trunk/gcc/testsuite/gfortran.dg/nan_2.f90	2007-12-06 10:09:11.000000000 +0900
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-fno-range-check -pedantic" }
+! { dg-options "-fno-range-check -pedantic -mieee" { target sh*-*-* } }
 !
 ! PR fortran/34333
 !
diff -uprN ORIG/trunk/gcc/testsuite/gfortran.dg/nearest_2.f90 LOCAL/trunk/gcc/testsuite/gfortran.dg/nearest_2.f90
--- ORIG/trunk/gcc/testsuite/gfortran.dg/nearest_2.f90	2007-11-25 11:45:01.000000000 +0900
+++ LOCAL/trunk/gcc/testsuite/gfortran.dg/nearest_2.f90	2007-12-06 11:38:23.000000000 +0900
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-fno-range-check" }
+! { dg-options "-fno-range-check -mieee" { target sh*-*-* } }
 !
 ! PR fortran/34192
 !
diff -uprN ORIG/trunk/gcc/testsuite/gfortran.dg/nearest_3.f90 LOCAL/trunk/gcc/testsuite/gfortran.dg/nearest_3.f90
--- ORIG/trunk/gcc/testsuite/gfortran.dg/nearest_3.f90	2007-11-25 11:45:01.000000000 +0900
+++ LOCAL/trunk/gcc/testsuite/gfortran.dg/nearest_3.f90	2007-12-06 11:39:03.000000000 +0900
@@ -1,4 +1,5 @@
 ! { dg-do run }
+! { dg-options "-pedantic-errors -mieee" { target sh*-*-* } } 
 !
 ! PR fortran/34209
 !


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