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] SH: Adjust for explicit -mieee options


Hi,

A few library tests fail on sh4-unknown-linux-gnu after merging
from sh-elf-4_1-branch because now they require the explicit
-mieee option.  The appended patch fixes them.  It's tested
with bootstrap and "make -k check" at the toplevel.  Ok for
mainline?

Regards,
	kaz
--
[libjava/ChangeLog]
2005-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>

	* configure.host: Set IEEESPEC to -mieee for sh*-*-*.

[libstdc++-v3/ChangeLog]
2005-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>

	* testsuite/18_support/numeric_limits.cc (dg-options): Add
	-mieee to options on sh*-*-*.

diff -uprN ORIG/gcc/libjava/configure.host LOCAL/gcc/libjava/configure.host
--- ORIG/gcc/libjava/configure.host	2005-03-11 14:43:25.000000000 +0900
+++ LOCAL/gcc/libjava/configure.host	2005-05-12 07:17:14.000000000 +0900
@@ -158,6 +158,7 @@ case "${host}" in
 	libgcj_flags="${libgcj_flags} -mieee"
 	libgcj_interpreter=yes
 	enable_hash_synchronization_default=yes
+	IEEESPEC=-mieee
 	;;
 esac
 
diff -uprN ORIG/gcc/libstdc++-v3/testsuite/18_support/numeric_limits.cc LOCAL/gcc/libstdc++-v3/testsuite/18_support/numeric_limits.cc
--- ORIG/gcc/libstdc++-v3/testsuite/18_support/numeric_limits.cc	2004-03-05 08:29:40.000000000 +0900
+++ LOCAL/gcc/libstdc++-v3/testsuite/18_support/numeric_limits.cc	2005-05-12 07:17:14.000000000 +0900
@@ -1,4 +1,5 @@
 // { dg-options "-mieee" { target alpha*-*-* } }
+// { dg-options "-mieee" { target sh*-*-* } }
 
 // 1999-08-23 bkoz
 


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