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 module_nan and real_const_3 for SH


The attached patch is to add -mieee option for SH targets
which require that option for NaNs.
The patch is tested on i686-pc-linux-gnu with no regressions.
Committed.

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

	* gfortran.dg/module_nan.f90: Add -mieee for sh.
	* gfortran.dg/real_const_3.f90: Likewise.

diff -uprN ORIG/trunk/gcc/testsuite/gfortran.dg/module_nan.f90 LOCAL/trunk/gcc/testsuite/gfortran.dg/module_nan.f90
--- ORIG/trunk/gcc/testsuite/gfortran.dg/module_nan.f90	2007-12-05 09:12:18.000000000 +0900
+++ LOCAL/trunk/gcc/testsuite/gfortran.dg/module_nan.f90	2007-12-05 19:22:56.000000000 +0900
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-fno-range-check" }
+! { dg-options "-fno-range-check -mieee" { target sh*-*-* } }
 !
 ! PR fortran/34318
 !
diff -uprN ORIG/trunk/gcc/testsuite/gfortran.dg/real_const_3.f90 LOCAL/trunk/gcc/testsuite/gfortran.dg/real_const_3.f90
--- ORIG/trunk/gcc/testsuite/gfortran.dg/real_const_3.f90	2007-12-01 12:52:34.000000000 +0900
+++ LOCAL/trunk/gcc/testsuite/gfortran.dg/real_const_3.f90	2007-12-05 19:28:36.000000000 +0900
@@ -1,5 +1,6 @@
 !{ dg-do run }
 !{ dg-options "-fno-range-check" }
+!{ dg-options "-fno-range-check -mieee" { target sh*-*-* } }
 ! PR19310 and PR19904, allow disabling range check during compile.
 ! Contributed by Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 program main


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