This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: Use lb1sf68.asm on delta with GNU as (was: Re: spliting up libgcc2.c)


On Sun, 19 December 1999, 10:13:56, mhollstein@cygnus.com wrote:

 > I'll send a patch for the GNU as variant soon, but someone else has to
 > work  on a patch for the  native assembler as I do  not have access to
 > such a box anymore. Philippe, can you work on such a patch?

The patch  below makes  gcc  now  utilizing  the  funcs  from  lb1sf68
provided one is using GNU as. To make this work with Motorola's native
"as" we need to have a similar patch for gcc/config/m68k/t-mot3300 and
gcc/config/m68k/t-mot3300-gld; PLUS, we  need  to  have  someone  with
access  to such a  box  (Philippe?!?!?)  working on making lb1sf68.asm
acceptable for that particular assembler.

Cheers.

l8er
manfred


1999-12-20  Manfred Hollstein  <mhollstein@cygnus.com>

	* m68k/t-mot3300-gald (CROSS_LIBGCC1): Define to libgcc1-asm.a.
	(LIB1ASMSRC, LIB1ASMFUNCS, LIB2FUNCS_EXTRA): Define.
	(fpgnulib.c, xfgnulib.c): Add rules.
	* m68k/t-mot3300-gas: Likewise.

diff -rup -x CVS -x RCS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-19991219.orig/gcc/config/m68k/t-mot3300-gald egcs-19991219/gcc/config/m68k/t-mot3300-gald
--- egcs-19991219.orig/gcc/config/m68k/t-mot3300-gald	Sat Dec 19 10:17:17 1998
+++ egcs-19991219/gcc/config/m68k/t-mot3300-gald	Mon Dec 20 11:38:13 1999
@@ -1,6 +1,23 @@
 T_CPPFLAGS = -DUSE_GAS -DUSE_GLD
 TARGET_LIBGCC2_CFLAGS = -DUSE_GAS
 
+CROSS_LIBGCC1 = libgcc1-asm.a
+LIB1ASMSRC = m68k/lb1sf68.asm
+LIB1ASMFUNCS = _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \
+   _double _float _floatex \
+   _eqdf2 _nedf2 _gtdf2 _gedf2 _ltdf2 _ledf2 \
+   _eqsf2 _nesf2 _gtsf2 _gesf2 _ltsf2 _lesf2
+
+# These are really part of libgcc1, but this will cause them to be
+# built correctly, so...
+LIB2FUNCS_EXTRA = fpgnulib.c xfgnulib.c
+
+fpgnulib.c: $(srcdir)/config/m68k/fpgnulib.c
+	cp $(srcdir)/config/m68k/fpgnulib.c fpgnulib.c
+xfgnulib.c: $(srcdir)/config/m68k/fpgnulib.c
+	echo '#define EXTFLOAT' > xfgnulib.c
+	cat $(srcdir)/config/m68k/fpgnulib.c >> xfgnulib.c
+
 MULTILIB_OPTIONS=m68000/m68020 msoft-float
 MULTILIB_DIRNAMES=
 MULTILIB_MATCHES=m68000=mc68000 m68000=m68302 m68000=m68332 m68020=mc68020 m68020=m68040
diff -rup -x CVS -x RCS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-19991219.orig/gcc/config/m68k/t-mot3300-gas egcs-19991219/gcc/config/m68k/t-mot3300-gas
--- egcs-19991219.orig/gcc/config/m68k/t-mot3300-gas	Sat Dec 19 10:17:17 1998
+++ egcs-19991219/gcc/config/m68k/t-mot3300-gas	Mon Dec 20 11:38:11 1999
@@ -1,6 +1,23 @@
 T_CPPFLAGS = -DUSE_GAS
 TARGET_LIBGCC2_CFLAGS = -DUSE_GAS
 
+CROSS_LIBGCC1 = libgcc1-asm.a
+LIB1ASMSRC = m68k/lb1sf68.asm
+LIB1ASMFUNCS = _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \
+   _double _float _floatex \
+   _eqdf2 _nedf2 _gtdf2 _gedf2 _ltdf2 _ledf2 \
+   _eqsf2 _nesf2 _gtsf2 _gesf2 _ltsf2 _lesf2
+
+# These are really part of libgcc1, but this will cause them to be
+# built correctly, so...
+LIB2FUNCS_EXTRA = fpgnulib.c xfgnulib.c
+
+fpgnulib.c: $(srcdir)/config/m68k/fpgnulib.c
+	cp $(srcdir)/config/m68k/fpgnulib.c fpgnulib.c
+xfgnulib.c: $(srcdir)/config/m68k/fpgnulib.c
+	echo '#define EXTFLOAT' > xfgnulib.c
+	cat $(srcdir)/config/m68k/fpgnulib.c >> xfgnulib.c
+
 MULTILIB_OPTIONS=m68000/m68020 msoft-float
 MULTILIB_DIRNAMES=
 MULTILIB_MATCHES=m68000=mc68000 m68000=m68302 m68000=m68332 m68020=mc68020 m68020=m68040


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]