Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Oct 2002 10:33:26 -0700 (PDT)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 19148 for review
Message-ID:  <200210121733.g9CHXQrf021463@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=19148

Change 19148 by jmallett@jmallett_thefather on 2002/10/12 10:33:04

	Initial provisions for FreeBSD/MIPS in src/gnu toolchain bits.
	
	Based off of PowerPC and SPARC64 where appropriate, or taken from the
	FSF bits (namely lists of libgcc symbols, files, etc.).
	
	XXXMIPS added due to the fact that we're aiming for R4K systems, and want
	to be able to target 64-bit binaries, but want to default to 32-bit.  Also
	because we want to support bi-endian-ness...  But we should probably draw
	a line in the sand for what FreeBSD will run as and produce, and then on
	reversed-endian systems to that, we should switch at /boot/loader ?

Affected files ...

.. //depot/projects/mips/gnu/lib/csu/Makefile#2 edit
.. //depot/projects/mips/gnu/lib/libgcc/Makefile#2 edit
.. //depot/projects/mips/gnu/usr.bin/binutils/as/mips-freebsd/Makefile#1 add
.. //depot/projects/mips/gnu/usr.bin/binutils/as/mips-freebsd/config.h#1 add
.. //depot/projects/mips/gnu/usr.bin/binutils/as/mips-freebsd/itbl-cpu.h#1 add
.. //depot/projects/mips/gnu/usr.bin/binutils/as/mips-freebsd/targ-cpu.h#1 add
.. //depot/projects/mips/gnu/usr.bin/binutils/libbfd/Makefile.mips#1 add
.. //depot/projects/mips/gnu/usr.bin/binutils/libbfd/mips/bfd.h#1 add

Differences ...

==== //depot/projects/mips/gnu/lib/csu/Makefile#2 (text+ko) ====

@@ -27,7 +27,7 @@
 TGTOBJS=	crtsavres.o
 SRCS+=		crtsavres.asm
 .endif
-.if ${TARGET_ARCH} == "alpha" || ${TARGET_ARCH} == "sparc64"
+.if ${TARGET_ARCH} == "alpha" || ${TARGET_ARCH} == "mips" || ${TARGET_ARCH} == "sparc64"
 TGTOBJS=	crtfastmath.o
 SRCS+=		crtfastmath.c
 .endif

==== //depot/projects/mips/gnu/lib/libgcc/Makefile#2 (text+ko) ====

@@ -108,6 +108,27 @@
 LIB2ADDEH = unwind-ia64.c unwind-sjlj.c
 .endif
 
+.if ${TARGET_ARCH} == "mips"
+#	from config/mips/t-elf
+LIB1ASMSRC = mips16.S
+LIB1ASMFUNCS = _m16addsf3 _m16subsf3 _m16mulsf3 _m16divsf3 \
+        _m16eqsf2 _m16nesf2 _m16gtsf2 _m16gesf2 _m16lesf2 _m16ltsf2 \
+	_m16fltsisf _m16fixsfsi \
+	_m16adddf3 _m16subdf3 _m16muldf3 _m16divdf3 \
+	_m16extsfdf2 _m16trdfsf2 \
+	_m16eqdf2 _m16nedf2 _m16gtdf2 _m16gedf2 _m16ledf2 _m16ltdf2 \
+	_m16fltsidf _m16fixdfsi \
+	_m16retsf _m16retdf \
+	_m16stub1 _m16stub2 _m16stub5 _m16stub6 _m16stub9 _m16stub10 \
+	_m16stubsf0 _m16stubsf1 _m16stubsf2 _m16stubsf5 _m16stubsf6 \
+	_m16stubsf9 _m16stubsf10 \
+	_m16stubdf0 _m16stubdf1 _m16stubdf2 _m16stubdf5 _m16stubdf6 \
+	_m16stubdf9 _m16stubdf10
+# We want fine grained libraries, so use the new code to build the
+# floating point emulation libraries.
+OBJS+=	db-bit.o fp-bit.o
+.endif
+
 .if ${TARGET_ARCH} == "powerpc"
 #	from config/rs6000/t-ppccomm
 LIB2FUNCS_EXTRA = tramp.asm
@@ -164,7 +185,7 @@
 SYMS=		${LIB2FUNCS_1}		\
 		${LIB2FUNCS_2}		\
 		${LIB2_DIVMOD_FUNCS}
-.if ${TARGET_ARCH} == "arm" || ${TARGET_ARCH} == "powerpc" || ${TARGET_ARCH} == "sparc64"
+.if ${TARGET_ARCH} == "arm" || ${TARGET_ARCH} == "mips" || ${TARGET_ARCH} == "powerpc" || ${TARGET_ARCH} == "sparc64"
 SYMS+=		${FPBIT_FUNCS} ${DPBIT_FUNCS}
 .endif
 SYMS_ST=	${LIB2FUNCS_ST}		\

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210121733.g9CHXQrf021463>