Include {u,}{div,mod}si3() on mips in libcompiler_rt.

These builtins were listed in the mips-specific Symbol.map for libc but
were not implemented.  Compiling mips with recent clang requires these
symbols.

Sponsored by:	DARPA / AFRL
This commit is contained in:
John Baldwin 2017-08-21 17:49:01 +00:00
parent ac3b479ec8
commit 04a91333db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322766
2 changed files with 4 additions and 11 deletions

View file

@ -43,10 +43,6 @@ FBSDprivate_1.0 {
_set_tp;
___longjmp;
__umodsi3;
__modsi3;
__udivsi3;
__divsi3;
__makecontext;
__longjmp;
signalcontext;

View file

@ -32,6 +32,7 @@ SRCF+= divdi3
SRCF+= divmoddi4
SRCF+= divmodsi4
SRCF+= divsc3
SRCF+= divsi3
SRCF+= divtc3
SRCF+= divti3
SRCF+= divxc3
@ -78,6 +79,7 @@ SRCF+= int_util
SRCF+= lshrdi3
SRCF+= lshrti3
SRCF+= moddi3
SRCF+= modsi3
SRCF+= modti3
SRCF+= muldc3
SRCF+= muldi3
@ -120,8 +122,10 @@ SRCF+= udivdi3
SRCF+= udivmoddi4
SRCF+= udivmodsi4
SRCF+= udivmodti4
SRCF+= udivsi3
SRCF+= udivti3
SRCF+= umoddi3
SRCF+= umodsi3
SRCF+= umodti3
# __cpu_model support, only used on x86
@ -176,13 +180,6 @@ SRCF+= comparedf2
SRCF+= comparesf2
.endif
.if ${MACHINE_CPUARCH} != "mips"
SRCF+= divsi3
SRCF+= modsi3
SRCF+= udivsi3
SRCF+= umodsi3
.endif
# FreeBSD-specific atomic intrinsics.
.if ${MACHINE_CPUARCH} == "arm"
.PATH: ${SRCTOP}/sys/arm/arm