sh-elf -m4-nofpu testsuite failures
Bernd Schmidt
bernds@redhat.co.uk
Thu Sep 14 09:40:00 GMT 2000
On the sh, we aren't compiling one of the libfuncs when building the -m4-nofpu
multilib. This patch should fix it.
Bernd
* sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
* lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__ is defined.
Index: sh.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/sh/sh.h,v
retrieving revision 1.193
diff -u -p -r1.193 sh.h
--- sh.h 2000/09/14 06:13:15 1.193
+++ sh.h 2000/09/14 16:39:04
@@ -60,7 +60,7 @@ extern int code_for_indirect_jump_scratc
%{m3e:-D__SH3E__} \
%{m4-single-only:-D__SH4_SINGLE_ONLY__} \
%{m4-single:-D__SH4_SINGLE__} \
-%{m4-nofpu:-D__sh3__} \
+%{m4-nofpu:-D__sh3__ -D__SH4_NOFPU__} \
%{m4:-D__SH4__} \
%{!m1:%{!m2:%{!m3:%{!m3e:%{!m4:%{!m4-single:%{!m4-single-only:%{!m4-nofpu:-D__sh1__}}}}}}}} \
%{mnomacsave:-D__NOMACSAVE__} \
Index: lib1funcs.asm
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/sh/lib1funcs.asm,v
retrieving revision 1.32
diff -u -p -r1.32 lib1funcs.asm
--- lib1funcs.asm 2000/09/07 04:41:17 1.32
+++ lib1funcs.asm 2000/09/14 16:39:04
@@ -772,7 +772,7 @@ GLOBAL(movstr):
#endif
#ifdef L_movstr_i4
-#if defined(__SH4__) || defined(__SH4_SINGLE__) || defined(__SH4_SINGLE_ONLY__)
+#if defined(__SH4__) || defined(__SH4_SINGLE__) || defined(__SH4_SINGLE_ONLY__) || defined(__SH4_NOFPU__)
.text
.global GLOBAL(movstr_i4_even)
.global GLOBAL(movstr_i4_odd)
More information about the Gcc-patches
mailing list