This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch 3.0.1] Fix the float-int conversion on h8300
- To: gcc-patches at gcc dot gnu dot org
- Subject: [patch 3.0.1] Fix the float-int conversion on h8300
- From: Kazu Hirata <kazu at hxi dot com>
Hi,
Attached is a patch to fix the float-int conversion on h8300. It does
basically the same thing as
http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00365.html
without changing gcc/Makefile.in, thus not affecting the other ports.
The patch prevents floatsisf and fixsfsi in libgcc2.c from being
included in libgcc.a by specifying the two functions in LIB1ASMFUNCS.
Even though config/h8300/lib1funcs.asm does not actually contain these
functions, floatsisf and fixsfsi in fp-bit.c will be included in
libgcc.a (see line 117 of mklibgcc.in).
Kazu Hirata
2001-06-30 Kazu Hirata <kazu@hxi.com>
* t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
Index: t-h8300
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/t-h8300,v
retrieving revision 1.5
diff -u -r1.5 t-h8300
--- t-h8300 1999/08/05 03:27:47 1.5
+++ t-h8300 2001/06/30 18:19:48
@@ -1,6 +1,7 @@
CROSS_LIBGCC1 = libgcc1-asm.a
LIB1ASMSRC = h8300/lib1funcs.asm
-LIB1ASMFUNCS = _cmpsi2 _ucmpsi2 _divhi3 _divsi3 _mulhi3 _mulsi3
+LIB1ASMFUNCS = _cmpsi2 _ucmpsi2 _divhi3 _divsi3 _mulhi3 _mulsi3 \
+ _floatdisf _fixsfdi
# We do not have DF or DI types, so fake out the libgcc2 compilation.
TARGET_LIBGCC2_CFLAGS = -DDF=SF -DDI=SI