summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cc
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2015-12-18 16:44:04 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2015-12-18 16:44:04 +0000
commit621123e5630fee6832fe5d8ebb8ce1d57fa83bc1 (patch)
tree1a33767e21aaeb763a8aab3e662d51dd8db1dcdf /gnu/usr.bin/cc
parent642f1af21cef923dc40111bdf8d73ad9bf24eaa3 (diff)
Add library-based __sync functions for mips64.
Help with testing and ok kettenis@
Diffstat (limited to 'gnu/usr.bin/cc')
-rw-r--r--gnu/usr.bin/cc/libgcc/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/usr.bin/cc/libgcc/Makefile b/gnu/usr.bin/cc/libgcc/Makefile
index 1320231aa90..1632c70a83d 100644
--- a/gnu/usr.bin/cc/libgcc/Makefile
+++ b/gnu/usr.bin/cc/libgcc/Makefile
@@ -1,5 +1,5 @@
# $FreeBSD: src/gnu/lib/libgcc/Makefile,v 1.58.8.1 2009/04/15 03:14:26 kensmith Exp $
-# $OpenBSD: Makefile,v 1.26 2014/04/08 23:18:21 martynas Exp $
+# $OpenBSD: Makefile,v 1.27 2015/12/18 16:44:03 visa Exp $
.include <bsd.own.mk>
@@ -159,6 +159,10 @@ LIB1ASMFUNCS = __divxf3 __divdf3 __divsf3 \
LIB2ADDEH = unwind-ia64.c unwind-sjlj.c unwind-c.c
.endif
+.if ${TARGET_ARCH} == "mips64" || ${TARGET_ARCH} == "mips64el"
+LIB2FUNCS_EXTRA = sync.S
+.endif
+
.if ${TARGET_ARCH} == "sh"
CFLAGS+= -fpic -DNO_FPSCR_VALUES
LIB1ASMSRC = sh/lib1funcs.asm