if ${MKGCC} != "no"
if exists(${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk)
include "${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk"
endif
endif
# non swfloat versions
for _p in _fix _fixuns
for _m in ${EXTRA_FUNC_SIZES}
LIB2FUNCS_ALL+= ${_p}${_m}di
endfor
endfor
for _p in _float _floatun
for _m in ${EXTRA_FUNC_SIZES}
LIB2FUNCS_ALL+= ${_p}di${_m}
endfor
endfor
for _m in sf df xf
LIB2FUNCS_ALL+= _fixuns${_m}si
endfor
endif
LIB2FUNCS_SHORT:=${LIB2FUNCS_ALL}
LIB2_DIVMOD_FUNCS:=${G_LIB2_DIVMOD_FUNCS}
for f in ${G_LIB1ASMFUNCS}; do
LIB2FUNCS_SHORT:=${LIB2FUNCS_SHORT:N${f}}
LIB2_DIVMOD_FUNCS:=${LIB2_DIVMOD_FUNCS:N${f}}
endfor
LIB2FUNCS= ${LIB2FUNCS_SHORT:=.c}
_LIB2FUNCS= ${G_LIB2FUNCS_ST}
for _f in ${LIB2FUNCS_EXCLUDE}
_LIB2FUNCS= ${_LIB2FUNCS:N${_f}}
endfor
LIB2FUNCS_ST= ${_LIB2FUNCS:=.c}
LIB2DIVMOD= ${LIB2_DIVMOD_FUNCS:=.c}
if ${HAVE_LIBGCC_EH} == "no"
LIB2_EH= ${G_LIB2ADDEH:M*.c:T:Nunwind-dw2.c:Nunwind-dw2-fde-dip.c:Nunwind-sjlj.c:Nunwind-c.c:Nunwind-arm.c:Npr-support.c}
LIB2_EHASM= ${G_LIB2ADDEH:M*.S:T:Nlibunwind.S}
else
LIB2_EH= ${G_LIB2ADDEH:M*.c:T}
LIB2_EHASM= ${G_LIB2ADDEH:M*.S:T}
INCSDIR= /usr/include
# originally copied from unwind-*.h
INCS+= unwind.h
endif
# We have to weed out any existing func.S file that may exist
# from the list of files we create.
if !empty(G_LIB1ASMFUNCS)
for f in ${G_LIB1ASMFUNCS:=.S}
if !exists(${DIST}/libgcc/config/${GCC_MACHINE_SUBDIR}/${f})
LIB1ASMFUNCS+= ${f}
endif
endfor
endif
if exists(${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk)
DPSRCS+= ${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk
endif
CLEANFILES+= ${LIB2FUNCS} ${LIB2FUNCS_ST} ${LIB2DIVMOD} cs-tconfig.h
if !empty(G_LIB1ASMFUNCS)
CLEANFILES+= ${LIB1ASMFUNCS}
endif
for file in ${G_LIB2ADD:M${GNUHOSTDIST}*:N*.c}
BUILDSYMLINKS+= ${file} ${file:T:S/.asm$/.S/}
endfor
if ${LIB} == "gcc" && \
(${LIBGCC_MACHINE_ARCH} == "aarch64" || \
${LIBGCC_MACHINE_ARCH} == "aarch64eb") # {
# XXX lse.S objects are placed directly into "libgcc-objects" for GCC, and
# are not pulled out by mknative-gcc easily.
for s in 1 2 4 8 16
for m in 1 2 3 4 5
for n in cas
LSE_NAMES+= ${n}_${s}_${m}
CPPFLAGS.${n}_${s}_${m}+= -DL_${n} -DSIZE=${s} -DMODEL=${m}
endfor
endfor
endfor
for s in 1 2 4 8
for m in 1 2 3 4 5
for n in swp ldadd ldclr ldeor ldset
LSE_NAMES+= ${n}_${s}_${m}
CPPFLAGS.${n}_${s}_${m}+= -DL_${n} -DSIZE=${s} -DMODEL=${m}
endfor
endfor
endfor