- Switch to libc softfloat from libgcc implementation. The problem

with latter is that it is not complete, fpsetXXX/fpgetXXX
    functions are missing.
This commit is contained in:
Oleksandr Tymoshenko 2009-06-26 01:27:31 +00:00
parent 9f67da7c26
commit 860c31caa1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/mips/; revision=195030
3 changed files with 24 additions and 2 deletions

View File

@ -109,6 +109,10 @@ LIB2FUNCS_EXTRA = floatunsidf.c floatunsisf.c
# _fixsfsi _fixunssfsi _floatdidf _floatdisf
.endif
.if ${TARGET_ARCH} == "mips"
LIB2FUNCS_EXTRA = floatunsidf.c floatunsisf.c
.endif
.if ${TARGET_ARCH} == "ia64"
# from config/ia64/t-ia64
LIB1ASMSRC = lib1funcs.asm
@ -173,7 +177,7 @@ OBJ_GRPS = STD DIV
#
# Floating point emulation functions
#
.if ${TARGET_ARCH} == "armNOT_YET" || ${TARGET_ARCH} == "mips" || \
.if ${TARGET_ARCH} == "armNOT_YET" || \
${TARGET_ARCH} == "powerpc" || ${TARGET_ARCH} == "sparc64"
FPBIT_CFLAGS = -DFINE_GRAINED_LIBRARIES -DFLOAT

View File

@ -64,7 +64,7 @@ NOASM=
.include "${.CURDIR}/rpc/Makefile.inc"
.include "${.CURDIR}/uuid/Makefile.inc"
.include "${.CURDIR}/xdr/Makefile.inc"
.if ${MACHINE_ARCH} == "arm"
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "mips"
.include "${.CURDIR}/softfloat/Makefile.inc"
.endif
.if ${MK_NIS} != "no"

View File

@ -61,4 +61,22 @@ FBSDprivate_1.0 {
minbrk;
_brk;
_sbrk;
/* softfloat */
__addsf3;
__adddf3;
__subsf3;
__subdf3;
__mulsf3;
__muldf3;
__divsf3;
__divdf3;
__floatsisf;
__floatsidf;
__fixsfsi;
__fixdfsi;
__fixunssfsi;
__fixunsdfsi;
__extendsfdf2;
__truncdfsf2;
};