This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[PATCH] SH: Adjust for explicit -mieee options
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Cc: joern dot rennecke at st dot com, aoliva at redhat dot com, java-patches at gcc dot gnu dot org
- Date: Fri, 13 May 2005 07:03:21 +0900 (JST)
- Subject: [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