Make libgcc compilable on RISC-V.

This commit is contained in:
Ruslan Bukin 2016-01-26 14:45:21 +00:00
parent 4bf1032a04
commit faf51c558e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=294834

View File

@ -58,8 +58,10 @@ LIB2FUNCS+= _fixuns${mode}si
.endfor .endfor
# Likewise double-word routines. # Likewise double-word routines.
.if ${TARGET_CPUARCH} != "aarch64" && ${TARGET_CPUARCH} != "arm" .if ${TARGET_CPUARCH} != "aarch64" && ${TARGET_CPUARCH} != "arm" && \
# These are implemented in an ARM specific file but will not be filtered out ${TARGET_CPUARCH} != "riscv64"
# These are implemented in an ARM specific file but will not be filtered out.
# RISCVTODO: can't compile
.for mode in sf df xf tf .for mode in sf df xf tf
LIB2FUNCS+= _fix${mode}di _fixuns${mode}di LIB2FUNCS+= _fix${mode}di _fixuns${mode}di
LIB2FUNCS+= _floatdi${mode} _floatundi${mode} LIB2FUNCS+= _floatdi${mode} _floatundi${mode}
@ -322,7 +324,10 @@ EH_OBJS_T = ${LIB2ADDEHSTATIC:R:S/$/.o/}
EH_OBJS_P = ${LIB2ADDEHSTATIC:R:S/$/.po/} EH_OBJS_P = ${LIB2ADDEHSTATIC:R:S/$/.po/}
EH_OBJS_S = ${LIB2ADDEHSHARED:R:S/$/.So/} EH_OBJS_S = ${LIB2ADDEHSHARED:R:S/$/.So/}
EH_CFLAGS = -fexceptions -D__GLIBC__=3 -DElfW=__ElfN EH_CFLAGS = -fexceptions -D__GLIBC__=3 -DElfW=__ElfN
.if ${TARGET_CPUARCH} != "riscv64"
# RISCVTODO: unwinding support
SOBJS += ${EH_OBJS_S} SOBJS += ${EH_OBJS_S}
.endif
.for _src in ${LIB2ADDEHSTATIC:M*.c} .for _src in ${LIB2ADDEHSTATIC:M*.c}
${_src:R:S/$/.o/}: ${_src} ${COMMONHDRS} ${_src:R:S/$/.o/}: ${_src} ${COMMONHDRS}