svn commit: r322766 - in head/lib: libc/mips libcompiler_rt
John Baldwin
jhb at FreeBSD.org
Mon Aug 21 17:49:02 UTC 2017
Author: jhb
Date: Mon Aug 21 17:49:01 2017
New Revision: 322766
URL: https://svnweb.freebsd.org/changeset/base/322766
Log:
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
Modified:
head/lib/libc/mips/Symbol.map
head/lib/libcompiler_rt/Makefile.inc
Modified: head/lib/libc/mips/Symbol.map
==============================================================================
--- head/lib/libc/mips/Symbol.map Mon Aug 21 17:45:06 2017 (r322765)
+++ head/lib/libc/mips/Symbol.map Mon Aug 21 17:49:01 2017 (r322766)
@@ -43,10 +43,6 @@ FBSDprivate_1.0 {
_set_tp;
___longjmp;
- __umodsi3;
- __modsi3;
- __udivsi3;
- __divsi3;
__makecontext;
__longjmp;
signalcontext;
Modified: head/lib/libcompiler_rt/Makefile.inc
==============================================================================
--- head/lib/libcompiler_rt/Makefile.inc Mon Aug 21 17:45:06 2017 (r322765)
+++ head/lib/libcompiler_rt/Makefile.inc Mon Aug 21 17:49:01 2017 (r322766)
@@ -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
@@ -174,13 +178,6 @@ SRCF+= truncdfsf2
.if ${MACHINE_CPUARCH} != "arm"
SRCF+= comparedf2
SRCF+= comparesf2
-.endif
-
-.if ${MACHINE_CPUARCH} != "mips"
-SRCF+= divsi3
-SRCF+= modsi3
-SRCF+= udivsi3
-SRCF+= umodsi3
.endif
# FreeBSD-specific atomic intrinsics.
More information about the svn-src-all
mailing list