summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2020-11-13 16:45:12 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2020-11-13 16:45:12 +0000
commit212e5c7200f6e10496d45906cb11e941bdb8645f (patch)
treef8cbeae7a4338bb71c53782c888d8b5b72734111 /sys/arch
parent76eae12a32b645bc06771cfd2a50fc858b953950 (diff)
Fold -fno-builtin-* into -fno-builtin.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/loongson/stand/Makefile.inc13
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/arch/loongson/stand/Makefile.inc b/sys/arch/loongson/stand/Makefile.inc
index 02d1c4841ad..324d01118c1 100644
--- a/sys/arch/loongson/stand/Makefile.inc
+++ b/sys/arch/loongson/stand/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.6 2020/11/13 16:42:50 visa Exp $
+# $OpenBSD: Makefile.inc,v 1.7 2020/11/13 16:45:11 visa Exp $
BINDIR= /usr/mdec
@@ -7,16 +7,7 @@ STANDALONE?= -D_STANDALONE
.if ${MACHINE} == "loongson"
CPPFLAGS+= ${STANDALONE}
CPPFLAGS+= -I.
-CFLAGS+= -fno-stack-protector -Wall
-CFLAGS+= -fno-builtin-vprintf -fno-builtin-printf -fno-builtin-putchar
-# Silence warnings
-CFLAGS+= -fno-builtin-snprintf
-CFLAGS+= -fno-builtin-memcpy
-CFLAGS+= -fno-builtin-memcmp
-CFLAGS+= -fno-builtin-memset
-CFLAGS+= -fno-builtin-strncpy
-CFLAGS+= -fno-builtin-strncmp
-CFLAGS+= -fno-builtin-exit
+CFLAGS+= -fno-builtin -fno-stack-protector -Wall
CFLAGS+= -Wa,-mfix-loongson2f-btb
AFLAGS+= -Wa,-mfix-loongson2f-btb
SAABI= -mips3 -mno-abicalls -G 0 -fno-pic -fno-common