This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch applied to sh-elf-4.1-branch sh.h
> With this patch, almost regressions on sh4-unknown-linux-gnu went
> away. Here is the current list of tests that newly FAIL, comparing
> with the vanilla 4.1.0 (20050407):
>
> === libstdc++ tests ===
> 18_support/numeric_limits.cc execution test
>
> === libjava tests ===
> CompareNaN -O3 output - source compiled test
> CompareNaN output - source compiled test
>
> === gcc tests ===
> gcc.dg/pr15784-3.c scan-tree-dump-times ABS_EXPR 1
These tests requires the explicit -mieee option on sh-elf-4_1-branch.
The appended patch fixes them.
> === gfortran tests ===
> gfortran.dg/pr20755.f -O0 (test for excess errors)
> gfortran.dg/pr20755.f -O1 (test for excess errors)
> gfortran.dg/pr20755.f -O2 (test for excess errors)
> gfortran.dg/pr20755.f -O3 -fomit-frame-pointer (test for excess errors)
> gfortran.dg/pr20755.f -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions (test for excess errors)
> gfortran.dg/pr20755.f -O3 -fomit-frame-pointer -funroll-loops (test for excess errors)
> gfortran.dg/pr20755.f -O3 -g (test for excess errors)
> gfortran.dg/pr20755.f -Os (test for excess errors)
This test was updated after branching sh-elf-4_1-branch and the updated
one passed on sh-elf-4_1-branch.
Thus there is no real regression on sh4-unknown-linux-gnu. Great!
Regards,
kaz
--
[gcc/testsuite/ChangeLog]
* gcc.dg/pr15784-3.c (dg-options): Add -mieee to options on
sh*-*-*.
[libstdc++-v3/ChangeLog]
* testsuite/18_support/numeric_limits.cc (dg-options): Add
-mieee to options on sh*-*-*.
[libjava/ChangeLog]
* configure.host: Set IEEESPEC to -mieee for sh*-*-*.
diff -uprN ORIG/gcc-4.1-sh/gcc/testsuite/gcc.dg/pr15784-3.c LOCAL/gcc-4.1-sh/gcc/testsuite/gcc.dg/pr15784-3.c
--- ORIG/gcc-4.1-sh/gcc/testsuite/gcc.dg/pr15784-3.c 2005-04-01 03:34:14.000000000 +0900
+++ LOCAL/gcc-4.1-sh/gcc/testsuite/gcc.dg/pr15784-3.c 2005-04-14 07:45:37.000000000 +0900
@@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-fdump-tree-generic" } */
+/* { dg-options "-mieee" { target sh*-*-* } } */
/* Test for folding abs(x) where appropriate. */
#define abs(x) x > 0 ? x : -x
extern double fabs (double);
diff -uprN ORIG/gcc-4.1-sh/libstdc++-v3/testsuite/18_support/numeric_limits.cc LOCAL/gcc-4.1-sh/libstdc++-v3/testsuite/18_support/numeric_limits.cc
--- ORIG/gcc-4.1-sh/libstdc++-v3/testsuite/18_support/numeric_limits.cc 2004-03-05 08:29:40.000000000 +0900
+++ LOCAL/gcc-4.1-sh/libstdc++-v3/testsuite/18_support/numeric_limits.cc 2005-04-14 07:45:33.000000000 +0900
@@ -1,4 +1,5 @@
// { dg-options "-mieee" { target alpha*-*-* } }
+// { dg-options "-mieee" { target sh*-*-* } }
// 1999-08-23 bkoz
diff -uprN ORIG/gcc-4.1-sh/libjava/configure.host LOCAL/gcc-4.1-sh/libjava/configure.host
--- ORIG/gcc-4.1-sh/libjava/configure.host 2005-03-11 04:02:16.000000000 +0900
+++ LOCAL/gcc-4.1-sh/libjava/configure.host 2005-04-13 19:54:46.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