Make sure movstr_i4 libfuncs are compiled for -m4-nofpu
authorBernd Schmidt <bernds@redhat.co.uk>
Fri, 15 Sep 2000 09:02:15 +0000 (09:02 +0000)
committerBernd Schmidt <crux@gcc.gnu.org>
Fri, 15 Sep 2000 09:02:15 +0000 (09:02 +0000)
From-SVN: r36428

gcc/ChangeLog
gcc/config/sh/lib1funcs.asm
gcc/config/sh/sh.h

index 455422411244865b0acb105309fbd38a229912e9..a5e9bbbd11a65c11e791cc6a7744b04400b24c23 100644 (file)
@@ -1,3 +1,9 @@
+2000-09-15  Bernd Schmidt  <bernds@redhat.co.uk>
+
+       * config/sh/sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
+       * config/sh/lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__
+       is defined.
+
 Fri 15-Sep-2000 06:49:07 BST  Neil Booth  <NeilB@earthling.net>
 
        * cpplex.c (ON_REST_ARG): Correct the test.
index 5fc90e2492161aee4e0f05aa4e1ef81e3c1951b7..6c2b7e9cad57871af1ebf1081843c6fab399ff63 100644 (file)
@@ -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)
index 4da693d266acf31d35468a2bd5195da82b182021..0090f371039019436819e5899052a3300fe1ebcf 100644 (file)
@@ -48,7 +48,7 @@ extern int code_for_indirect_jump_scratch;
 %{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__} \