]> gcc.gnu.org Git - gcc.git/commitdiff
fixunssfsi.c (__fixunssfsi): Enable on H8/300 as well.
authorKazu Hirata <kazu@cs.umass.edu>
Fri, 27 Feb 2004 23:20:48 +0000 (23:20 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 27 Feb 2004 23:20:48 +0000 (23:20 +0000)
* config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
as well.
* config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
* config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.

From-SVN: r78588

gcc/ChangeLog
gcc/config/h8300/fixunssfsi.c
gcc/config/h8300/lib1funcs.asm
gcc/config/h8300/t-h8300

index e6a72d0a12170501ff19d789a00e6c7dcb9fc677..a16b583d4c8b7d7e18e49d418dd467aeee250361 100644 (file)
@@ -1,3 +1,10 @@
+2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
+       as well.
+       * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
+       * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
+
 2004-02-27  Andrew Pinski  <apinski@apple.com>
 
        * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
index 06120ba4905d40cdf5089312ac084f0324a34031..0cd72dee048ea7055157f1ea446fda03b0f3c83a 100644 (file)
@@ -29,10 +29,8 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
 /* The libgcc2.c implementation gets confused by our type setup and creates
-   a directly recursive call, so we do our own implementation.  For
-   the H8/300, that's in lib1funcs.asm, for H8/300H and H8S, it's here.  */
+   a directly recursive call, so we do our own implementation.  */
 
-#ifndef __H8300__
 long __fixunssfsi (float a);
 
 long
@@ -42,4 +40,3 @@ __fixunssfsi (float a)
     return (long) (a - 32768L) + 32768L;
   return (long) a;
 }
-#endif
index 985ec36e317da4190557b23ee107088f9918fe44..bf981e050d090e1c0e001406f4d1abc8c2b87d19 100644 (file)
@@ -806,31 +806,3 @@ L_skip2:
 
 #endif
 #endif /* L_mulsi3 */
-#ifdef L_fixunssfsi_asm
-/* For the h8300 we use asm to save some bytes, to
-   allow more programs to fit into the tiny address
-   space.  For the H8/300H and H8S, the C version is good enough.  */
-#ifdef __H8300__
-/* We still treat NANs different than libgcc2.c, but then, the
-   behavior is undefined anyways.  */
-       .global ___fixunssfsi
-___fixunssfsi:
-       cmp.b #0x47,r0h
-       bge Large_num
-       jmp     @___fixsfsi
-Large_num:
-       bhi L_huge_num
-       xor.b #0x80,A0L
-       bmi L_shift8
-L_huge_num:
-       mov.w #65535,A0
-       mov.w A0,A1
-       rts
-L_shift8:
-       mov.b A0L,A0H
-       mov.b A1H,A0L
-       mov.b A1L,A1H
-       mov.b #0,A1L
-       rts
-#endif
-#endif /* L_fixunssfsi_asm */
index 28ea2cf71bda94250d97aadf32e6170200e28057..476dc18884a2575c76296ecbc262fbea77e46db5 100644 (file)
@@ -1,6 +1,5 @@
 LIB1ASMSRC = h8300/lib1funcs.asm
-LIB1ASMFUNCS = _cmpsi2 _ucmpsi2 _divhi3 _divsi3 _mulhi3 _mulsi3 \
-  _fixunssfsi_asm
+LIB1ASMFUNCS = _cmpsi2 _ucmpsi2 _divhi3 _divsi3 _mulhi3 _mulsi3
 
 LIB2FUNCS_EXTRA = \
        $(srcdir)/config/h8300/clzhi2.c \
This page took 0.07499 seconds and 5 git commands to generate.