with LLVM 13.
-# $OpenBSD: Makefile.bsd-wrapper,v 1.24 2021/11/23 10:30:08 robert Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.25 2021/12/17 14:59:21 patrick Exp $
.include <bsd.own.mk>
CONF_SUBDIRS= opcodes bfd
CFLAGS+= ${PIE_DEFAULT}
+.if ${COMPILER_VERSION:Mclang}
+CFLAGS+= -Wno-unused-but-set-variable -Wno-null-pointer-subtraction
+.endif
XCFLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" LDFLAGS="${LDSTATIC}"
# This allows moving the whole binutils installation around for
# testing purposes
-# $OpenBSD: Makefile.amd64,v 1.122 2021/11/27 00:49:21 jsg Exp $
+# $OpenBSD: Makefile.amd64,v 1.123 2021/12/17 14:59:22 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${COMPILER_VERSION:Mclang}
NO_INTEGR_AS= -no-integrated-as
-CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion
+CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion \
+ -Wno-unused-but-set-variable -Wno-gnu-folding-constant
.endif
DEBUG?= -g
-# $OpenBSD: Makefile.arm64,v 1.40 2021/11/27 00:49:21 jsg Exp $
+# $OpenBSD: Makefile.arm64,v 1.41 2021/12/17 14:59:22 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
CWARNFLAGS= -Werror -Wall -Wimplicit-function-declaration \
-Wno-pointer-sign \
-Wno-constant-conversion -Wno-address-of-packed-member \
+ -Wno-unused-but-set-variable -Wno-gnu-folding-constant \
-Wframe-larger-than=2047
CMACHFLAGS= -march=armv8-a+nofp+nosimd \
-# $OpenBSD: Makefile.armv7,v 1.51 2021/11/27 00:49:21 jsg Exp $
+# $OpenBSD: Makefile.armv7,v 1.52 2021/12/17 14:59:22 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
CWARNFLAGS= -Werror -Wall -Wimplicit-function-declaration \
-Wno-pointer-sign \
-Wno-constant-conversion -Wno-address-of-packed-member \
+ -Wno-unused-but-set-variable -Wno-gnu-folding-constant \
-Wframe-larger-than=2047
CMACHFLAGS= -msoft-float -march=armv7a
-# $OpenBSD: Makefile.i386,v 1.141 2021/11/27 00:49:21 jsg Exp $
+# $OpenBSD: Makefile.i386,v 1.142 2021/12/17 14:59:22 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${COMPILER_VERSION:Mclang}
NO_INTEGR_AS= -no-integrated-as
-CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion
+CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion \
+ -Wno-unused-but-set-variable -Wno-gnu-folding-constant
.endif
DEBUG?= -g
-# $OpenBSD: Makefile.loongson,v 1.81 2021/11/27 00:49:21 jsg Exp $
+# $OpenBSD: Makefile.loongson,v 1.82 2021/12/17 14:59:22 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.if ${COMPILER_VERSION:Mclang}
NO_INTEGR_AS= -no-integrated-as
CMACHFLAGS+= -fomit-frame-pointer
-CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion
+CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion \
+ -Wno-unused-but-set-variable -Wno-gnu-folding-constant
.endif
DEBUG?= -g
-# $OpenBSD: Makefile.macppc,v 1.103 2021/11/27 00:49:21 jsg Exp $
+# $OpenBSD: Makefile.macppc,v 1.104 2021/12/17 14:59:22 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${COMPILER_VERSION:Mclang}
NO_INTEGR_AS= -no-integrated-as
-CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion
+CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion \
+ -Wno-unused-but-set-variable -Wno-gnu-folding-constant
.endif
DEBUG?= -g
-# $OpenBSD: Makefile.octeon,v 1.59 2021/11/27 00:49:22 jsg Exp $
+# $OpenBSD: Makefile.octeon,v 1.60 2021/12/17 14:59:22 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.if ${COMPILER_VERSION:Mclang}
NO_INTEGR_AS= -no-integrated-as
CMACHFLAGS+= -fomit-frame-pointer
-CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion
+CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion \
+ -Wno-unused-but-set-variable -Wno-gnu-folding-constant
.endif
DEBUG?= -g
-# $OpenBSD: Makefile.powerpc64,v 1.11 2021/11/27 00:49:22 jsg Exp $
+# $OpenBSD: Makefile.powerpc64,v 1.12 2021/12/17 14:59:22 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
CWARNFLAGS= -Werror -Wall -Wimplicit-function-declaration \
-Wno-pointer-sign \
-Wno-constant-conversion -Wno-address-of-packed-member \
+ -Wno-unused-but-set-variable -Wno-gnu-folding-constant \
-Wframe-larger-than=2047
CMACHFLAGS= -mabi=elfv2 -msoft-float -mno-altivec -mno-vsx
-# $OpenBSD: Makefile.riscv64,v 1.13 2021/11/27 00:49:22 jsg Exp $
+# $OpenBSD: Makefile.riscv64,v 1.14 2021/12/17 14:59:22 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
CWARNFLAGS= -Werror -Wall -Wimplicit-function-declaration \
-Wno-pointer-sign \
-Wno-constant-conversion -Wno-address-of-packed-member \
+ -Wno-unused-but-set-variable -Wno-gnu-folding-constant \
-Wframe-larger-than=2047
CMACHFLAGS= -march=rv64gc -mcmodel=medany -mno-relax \
-# $OpenBSD: Makefile.sparc64,v 1.103 2021/01/28 17:39:03 deraadt Exp $
+# $OpenBSD: Makefile.sparc64,v 1.104 2021/12/17 14:59:22 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${COMPILER_VERSION:Mclang}
CWARNFLAGS+= -Wno-unused-command-line-argument
-CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion
+CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion \
+ -Wno-unused-but-set-variable -Wno-gnu-folding-constant
.endif
DEBUG?= -g