Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Aug 2017 17:49:01 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322766 - in head/lib: libc/mips libcompiler_rt
Message-ID:  <201708211749.v7LHn1q7027907@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708211749.v7LHn1q7027907>