summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2018-09-11 15:52:01 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2018-09-11 15:52:01 +0000
commit79e57a547173675e523dbce5cb44655744f7accf (patch)
treec6f97d0fe6bb92210f5ab8d887780959b1d3a7af /sys/arch
parent620a952bcf90eeecc4b815b2be170e4468644bfa (diff)
Put clang-specific options behind conditionals to reduce meta-warnings
ok mpi@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/conf/Makefile.amd647
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/amd64/conf/Makefile.amd64 b/sys/arch/amd64/conf/Makefile.amd64
index 270559f14f3..852a3fa50dc 100644
--- a/sys/arch/amd64/conf/Makefile.amd64
+++ b/sys/arch/amd64/conf/Makefile.amd64
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.amd64,v 1.102 2018/09/09 22:09:36 guenther Exp $
+# $OpenBSD: Makefile.amd64,v 1.103 2018/09/11 15:52:00 guenther Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -25,7 +25,7 @@ INCLUDES= -nostdinc -I$S -I${.OBJDIR} -I$S/arch
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -MD -MP
CWARNFLAGS= -Werror -Wall -Wimplicit-function-declaration \
-Wno-uninitialized -Wno-pointer-sign \
- -Wno-address-of-packed-member -Wno-constant-conversion \
+ -Wno-address-of-packed-member \
-Wframe-larger-than=2047
CMACHFLAGS= -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow \
@@ -40,11 +40,12 @@ CMACHFLAGS+= -msave-args
.endif
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
-.else
+.elif ${COMPILER_VERSION:Mclang}
CMACHFLAGS+= -mretpoline
.endif
.if ${COMPILER_VERSION:Mclang}
NO_INTEGR_AS= -no-integrated-as
+CWARNFLAGS+= -Wno-constant-conversion
.endif
DEBUG?= -g