NetBSD/sys/modules
rin 7c76c2272e Drop -O[01] hacks for vax; no longer necessary for patched GCC 10
PR port-vax/57646: Import major vax toolchain fix by Kalvis Duckmanton

XXXRO: GCC 12 may require hacks for a while, but it turned out that
GCC 12 should be treated differently from older versions; a lot of new
files need -O[01] flags, while some may no longer require it.

I will take a look later.

Note that these hacks are not required if Kalvis's patches for GCC 12
are applied.

Keep doc/HACKS entries for a while (will be sync with update for GCC 12).

diff --git a/crypto/external/bsd/openssh/lib/Makefile b/crypto/external/bsd/openssh/lib/Makefile
index 96a93f5e396..4e38be1b642 100644
--- a/crypto/external/bsd/openssh/lib/Makefile
+++ b/crypto/external/bsd/openssh/lib/Makefile
@@ -117,12 +117,6 @@ COPTS.${f}.c+=	-Wno-pointer-sign
 # XXX
 COPTS.channels.c+=	-fno-strict-aliasing

-# XXX
-.if ${MACHINE} == "vax"
-COPTS.poly1305.c+=	-O0
-COPTS.umac.c+=		-O0
-.endif
-
 COPTS.hostfile.c+=	${CC_WNO_FORMAT_TRUNCATION}
 COPTS.sshkey.c+=	${CC_WNO_FORMAT_TRUNCATION}
 COPTS.cipher.c+=	-Wno-error=deprecated-declarations
diff --git a/distrib/utils/x_ping/Makefile b/distrib/utils/x_ping/Makefile
index f1c452a0d60..8ee77580a3f 100644
--- a/distrib/utils/x_ping/Makefile
+++ b/distrib/utils/x_ping/Makefile
@@ -12,10 +12,6 @@ CPPFLAGS+=	-I${SRCDIR} -DCRUNCHOPS
 DPADD=		${LIBM}
 LDADD=		-lm

-.if ${MACHINE_ARCH} == "vax"
-COPTS.ping.c=-O0
-.endif
-
 .include <bsd.prog.mk>

 .PATH:		${SRCDIR}
diff --git a/external/apache2/argon2/lib/libargon2/Makefile.inc b/external/apache2/argon2/lib/libargon2/Makefile.inc
index d3f4470c6c7..6a1dd146d7d 100644
--- a/external/apache2/argon2/lib/libargon2/Makefile.inc
+++ b/external/apache2/argon2/lib/libargon2/Makefile.inc
@@ -16,7 +16,3 @@ CFLAGS+=	-pthread
 LDADD+=-lpthread
 DPADD+=${LIBPTHREAD}
 .endif
-
-.if ${MACHINE} == "vax"
-COPTS.blake2b.c+=	-O0
-.endif
diff --git a/external/bsd/jemalloc/lib/Makefile.inc b/external/bsd/jemalloc/lib/Makefile.inc
index 2f524358f46..d5da774f293 100644
--- a/external/bsd/jemalloc/lib/Makefile.inc
+++ b/external/bsd/jemalloc/lib/Makefile.inc
@@ -53,12 +53,6 @@ COPTS.ctl.c+=-Wno-error=stack-protector
 COPTS.stats.c+=-Wno-error=stack-protector
 COPTS.tcache.c+=-Wno-error=stack-protector

-.if ${MACHINE_ARCH} == "vax"
-# in merge_overlapping_regs, at regrename.c
-COPTS.arena.c+=-O0
-COPTS.extent.c+=-O0
-.endif
-
 SRCS+=${JEMALLOC_SRCS}

 jemalloc.d jemalloc.pico jemalloc.o jemalloc.ln jemalloc.po jemalloc.go: \
diff --git a/external/bsd/mdocml/lib/libmandoc/Makefile b/external/bsd/mdocml/lib/libmandoc/Makefile
index 40d7e29ae88..dfd3077a2c7 100644
--- a/external/bsd/mdocml/lib/libmandoc/Makefile
+++ b/external/bsd/mdocml/lib/libmandoc/Makefile
@@ -39,11 +39,6 @@ tbl_opts.c

 MAN=	mandoc.3

-# XXX
-.if ${MACHINE} == "vax"
-COPTS.mdoc_macro.c+=-O0
-.endif
-
 COPTS.man_validate.c+=-Wno-error=array-bounds

 .include <bsd.lib.mk>
diff --git a/external/gpl3/binutils.old/lib/libbfd/Makefile b/external/gpl3/binutils.old/lib/libbfd/Makefile
index 03477232b55..74a354532fa 100644
--- a/external/gpl3/binutils.old/lib/libbfd/Makefile
+++ b/external/gpl3/binutils.old/lib/libbfd/Makefile
@@ -41,10 +41,6 @@ CPPFLAGS+=	-I${.CURDIR}/arch/${BFD_MACHINE_ARCH} -I${DIST}/include -I. \
 		-DDEBUGDIR=\"${DEBUGDIR}\" -DLIBDIR=\"${LIBDIR}\" \
 		-DBINDIR=\"${BINDIR}\"

-.if (${BFD_MACHINE_ARCH} == "vax")
-CPPFLAGS.elf.c +=	-O0
-.endif
-
 COPTS.pei-x86_64.c+=	-Wno-stack-protector
 COPTS.elfxx-mips.c+=	-Wno-stack-protector
 COPTS.elf.c+=		${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-overflow :}
diff --git a/external/gpl3/binutils/lib/libbfd/Makefile b/external/gpl3/binutils/lib/libbfd/Makefile
index 00cb2b20081..a3f0c25fd35 100644
--- a/external/gpl3/binutils/lib/libbfd/Makefile
+++ b/external/gpl3/binutils/lib/libbfd/Makefile
@@ -41,10 +41,6 @@ CPPFLAGS+=	-I${.CURDIR}/arch/${BFD_MACHINE_ARCH} -I${DIST}/include -I. \
 		-DDEBUGDIR=\"${DEBUGDIR}\" -DLIBDIR=\"${LIBDIR}\" \
 		-DBINDIR=\"${BINDIR}\"

-.if (${BFD_MACHINE_ARCH} == "vax")
-CPPFLAGS.elf.c +=	-O0
-.endif
-
 COPTS.pei-x86_64.c+=	-Wno-stack-protector
 COPTS.elfxx-mips.c+=	-Wno-stack-protector
 COPTS.elf.c+=		${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-overflow :}
diff --git a/external/gpl3/gcc.old/lib/Makefile.sanitizer b/external/gpl3/gcc.old/lib/Makefile.sanitizer
index efd36ae4bee..5173a5109a0 100644
--- a/external/gpl3/gcc.old/lib/Makefile.sanitizer
+++ b/external/gpl3/gcc.old/lib/Makefile.sanitizer
@@ -88,22 +88,3 @@ COPTS+=-fno-builtin -fno-exceptions -fno-rtti -funwind-tables

 # Can't profile without it`
 #-fomit-frame-pointer
-
-.if ${MACHINE_ARCH} == "vax"
-COPTS.sanitizer_allocator.cc += -O1
-COPTS.sanitizer_common.cc += -O1
-COPTS.sanitizer_common_libcdep.cc += -O1
-COPTS.sanitizer_coverage_libcdep.cc += -O1
-COPTS.sanitizer_coverage_mapping_libcdep.cc += -O1
-COPTS.sanitizer_deadlock_detector1.cc += -O1
-COPTS.sanitizer_mac.cc += -O1
-COPTS.sanitizer_netbsd.cc += -O1
-COPTS.sanitizer_posix.cc += -O1
-COPTS.sanitizer_printf.cc += -O1
-COPTS.sanitizer_procmaps_common.cc += -O1
-COPTS.sanitizer_stackdepot.cc += -O1
-COPTS.sanitizer_symbolizer_libcdep.cc += -O1
-COPTS.sanitizer_symbolizer_report.cc += -O1
-COPTS.ubsan_diag.cc += -O1
-COPTS.ubsan_init.cc += -O1
-.endif
diff --git a/external/gpl3/gcc.old/lib/libasan/Makefile b/external/gpl3/gcc.old/lib/libasan/Makefile
index 1e6f9608abe..3da7bbf2f58 100644
--- a/external/gpl3/gcc.old/lib/libasan/Makefile
+++ b/external/gpl3/gcc.old/lib/libasan/Makefile
@@ -49,14 +49,6 @@ LIBDPLIBS+= m  ${NETBSDSRCDIR}/lib/libm
 LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread
 CPPFLAGS+=-DCAN_SANITIZE_UB=0

-.if ${MACHINE_ARCH} == "vax"
-COPTS.asan_allocator.cc += -O1
-COPTS.asan_report.cc += -O1
-COPTS.sanitizer_file.cc += -O1
-COPTS.ubsan_diag.cc += -O1
-COPTS.ubsan_init.cc += -O1
-.endif
-
 .if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
 COPTS.asan_interceptors.cc += -O1
 .endif
diff --git a/external/gpl3/gcc.old/lib/liblsan/Makefile b/external/gpl3/gcc.old/lib/liblsan/Makefile
index 4578544a9a8..ddb7981077c 100644
--- a/external/gpl3/gcc.old/lib/liblsan/Makefile
+++ b/external/gpl3/gcc.old/lib/liblsan/Makefile
@@ -16,11 +16,6 @@ LSAN_SRCS+= \
 	lsan_linux.cc \
 	lsan_thread.cc

-.if ${MACHINE_ARCH} == "vax"
-COPTS.lsan_allocator.cc += -O1
-COPTS.sanitizer_file.cc += -O1
-.endif
-
 LIB=	lsan
 SRCS+=	${LSAN_SRCS}
 LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
diff --git a/external/gpl3/gcc.old/lib/libubsan/Makefile b/external/gpl3/gcc.old/lib/libubsan/Makefile
index 2e2faca7b1c..9de82550d14 100644
--- a/external/gpl3/gcc.old/lib/libubsan/Makefile
+++ b/external/gpl3/gcc.old/lib/libubsan/Makefile
@@ -26,10 +26,6 @@ UBSAN_SRCS= \
 COPTS.${_s}.cc+=-frtti
 .endfor

-.if ${MACHINE_ARCH} == "vax"
-COPTS.sanitizer_file.cc += -O1
-.endif
-
 LIB=	ubsan
 SRCS+=	${UBSAN_SRCS}
 LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
diff --git a/external/gpl3/gcc.old/usr.bin/cc1/Makefile b/external/gpl3/gcc.old/usr.bin/cc1/Makefile
index c55e292ee8e..ff12a5be524 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1/Makefile
@@ -46,17 +46,6 @@ CPPFLAGS.default-c.c+=	-I${BACKENDOBJ}
 BUILDSYMLINKS+= ${GNUHOSTDIST}/gcc/config/sh/sh-c.cc sh-c.c
 .endif

-.if ${MACHINE_CPU} == "vax"
-COPTS.c-decl.c+=-O0
-COPTS.c-typeck.c+=-O0
-COPTS.c-array-notation.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1-checksum.c+=-O0
-.endif
-
 .if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
 COPTS.c-common.c+=-O3
 .endif
diff --git a/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile b/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile
index 3123ee0d60b..aab82ad3448 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile
@@ -44,16 +44,8 @@ COPTS.objc-act.c+=			-Wno-stack-protector
 COPTS.objc-gnu-runtime-abi-01.c+=	-Wno-stack-protector
 COPTS.objc-next-runtime-abi-01.c+=	-Wno-stack-protector

-.if ${MACHINE_ARCH} == "vax"
-COPTS.c-decl.c+=-O0
-COPTS.c-typeck.c+=-O0
-COPTS.c-array-notation.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1obj-checksum.c+=-O0
-.endif
+COPTS.c-cppbuiltin.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :}
+COPTS.c-typeck.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :}

 .if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
 COPTS.c-common.c+=-O3
diff --git a/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile b/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile
index b9c108251c5..e04e8fc7f53 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile
@@ -69,18 +69,6 @@ COPTS.objc-act.c+=			-Wno-stack-protector
 COPTS.objc-gnu-runtime-abi-01.c+=	-Wno-stack-protector
 COPTS.objc-next-runtime-abi-01.c+=	-Wno-stack-protector

-.if ${MACHINE_ARCH} == "vax"
-COPTS.c-decl.c+=-O0
-COPTS.c-typeck.c+=-O0
-COPTS.c-array-notation.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1obj-checksum.c+=-O0
-COPTS.decl.c+=-O0
-.endif
-
 .if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
 COPTS.c-common.c+=-O3
 .endif
diff --git a/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile b/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile
index 7936efd3a5e..7c54559e21a 100644
--- a/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile
@@ -31,23 +31,6 @@ CHECKSUM_OBJS= ${LIBBACKTRACEOBJ}/libbacktrace.a \

 CFLAGS+=	-Wno-error=stack-protector

-.if ${MACHINE_ARCH} == "vax"
-COPTS.call.c+=-O0
-COPTS.decl.c+=-O0
-COPTS.typeck2.c+=-O0
-COPTS.class.c+=-O0
-COPTS.typeck.c+=-O0
-COPTS.init.c+=-O0
-COPTS.semantics.c+=-O0
-COPTS.mangle.c+=-O0
-COPTS.constexpr.c+=-O0
-COPTS.c-common.c+=-O0
-COPTS.c-ada-spec.c+=-O0
-COPTS.cilk.c+=-O0
-COPTS.c-ubsan.c+=-O0
-COPTS.cc1plus-checksum.c+=-O0
-.endif
-
 .if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel"
 COPTS.c-common.c+=-O3
 .endif
diff --git a/external/gpl3/gcc.old/usr.bin/gcc/Makefile b/external/gpl3/gcc.old/usr.bin/gcc/Makefile
index 7a66d77ffc7..a5a4b1c3adf 100644
--- a/external/gpl3/gcc.old/usr.bin/gcc/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/gcc/Makefile
@@ -25,9 +25,6 @@ ${SRCS}: ${GCCARCH}/defs.mk
 .include <bsd.info.mk>

 COPTS.gcc.c=	-Wno-stack-protector
-.if ${MACHINE_ARCH} == "vax"
-COPTS.dse.c=	-O1
-.endif

 .PATH: ${DIST}/gcc ${DIST}/gcc/doc ${DIST}/gcc/c

diff --git a/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile b/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile
index 751d1513eec..33aeb1c9898 100644
--- a/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile
@@ -14,10 +14,6 @@ SRCS=		decNumber.c decContext.c decimal32.c decimal64.c decimal128.c
 CPPFLAGS+=	-I${.CURDIR}/arch/${GCC_MACHINE_ARCH} -I${DIST}/libdecnumber
 CPPFLAGS+=	-I${DIST}/libgcc

-.if ${MACHINE_ARCH} == "vax"
-COPTS.decNumber.c=-O0
-.endif
-
 .include <bsd.lib.mk>

 # Force using C++ for this
diff --git a/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile b/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile
index 90f44a9fcf6..fd251464fb7 100644
--- a/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile
@@ -24,11 +24,6 @@ COPTS.lto-common.c+=	-Wno-stack-protector
 .include "../Makefile.backtrace"
 .include "../Makefile.libdecnumber"

-.if ${MACHINE_ARCH} == "vax"
-COPTS.lto-lang.c+=-O0
-COPTS.lto-symtab.c+=-O0
-.endif
-
 LDADD+=	${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
 DPADD+=	${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}

diff --git a/external/gpl3/gcc.old/usr.bin/lto1/Makefile b/external/gpl3/gcc.old/usr.bin/lto1/Makefile
index 4c49161a64c..340d3c6124f 100644
--- a/external/gpl3/gcc.old/usr.bin/lto1/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/lto1/Makefile
@@ -21,11 +21,6 @@ COPTS.lto-common.c+=	-Wno-stack-protector
 .include "../Makefile.libcpp"
 .include "../Makefile.libdecnumber"

-.if ${MACHINE_ARCH} == "vax"
-COPTS.lto-lang.c+=-O0
-COPTS.lto-symtab.c+=-O0
-.endif
-
 LDADD+= ${LIBIBERTYOBJ}/libiberty.a
 DPADD+= ${LIBIBERTYOBJ}/libiberty.a
 LDADD+=	${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
diff --git a/external/gpl3/gdb.old/lib/libdecnumber/Makefile b/external/gpl3/gdb.old/lib/libdecnumber/Makefile
index bcd4ae5b222..ce28811526b 100644
--- a/external/gpl3/gdb.old/lib/libdecnumber/Makefile
+++ b/external/gpl3/gdb.old/lib/libdecnumber/Makefile
@@ -18,10 +18,6 @@ CPPFLAGS+=	-I${.CURDIR}/arch/${GDB_MACHINE_ARCH} \

 SRCS=		${G_OBJS:.o=.c} ${G_SOURCES}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.decNumber.c=-O0
-.endif
-
 .PATH: ${DIST}/libdecnumber ${DIST}/libdecnumber/dpd

 .include <bsd.lib.mk>
diff --git a/external/gpl3/gdb/lib/libdecnumber/Makefile b/external/gpl3/gdb/lib/libdecnumber/Makefile
index c95d36e3dfa..e3169865304 100644
--- a/external/gpl3/gdb/lib/libdecnumber/Makefile
+++ b/external/gpl3/gdb/lib/libdecnumber/Makefile
@@ -18,10 +18,6 @@ CPPFLAGS+=	-I${.CURDIR}/arch/${GDB_MACHINE_ARCH} \

 SRCS=		${G_OBJS:.o=.c} ${G_SOURCES}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.decNumber.c=-O0
-.endif
-
 .PATH: ${DIST}/libdecnumber ${DIST}/libdecnumber/dpd ${DIST}/libdecnumber/bid

 .include <bsd.lib.mk>
diff --git a/external/gpl3/gdb/lib/libgdb/Makefile b/external/gpl3/gdb/lib/libgdb/Makefile
index b87a515d13a..c118c363975 100644
--- a/external/gpl3/gdb/lib/libgdb/Makefile
+++ b/external/gpl3/gdb/lib/libgdb/Makefile
@@ -66,12 +66,6 @@ CFLAGS:=		${CXXFLAGS} -std=gnu++17 -Wno-error=stack-protector

 ada-exp.c: ada-lex.c

-.if ${MACHINE} == "vax"
-. if ${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8
-COPTS.read.c+=	-O0
-. endif
-.endif
-
 # These are generated by implicit rules and are not easy to generate
 CLEANDIRFILES+= \
 	ada-exp.c ada-lex.c \
diff --git a/external/mit/xorg/lib/gallium.old/Makefile b/external/mit/xorg/lib/gallium.old/Makefile
index 55b2fe3d1c1..bfa40c8974f 100644
--- a/external/mit/xorg/lib/gallium.old/Makefile
+++ b/external/mit/xorg/lib/gallium.old/Makefile
@@ -1211,10 +1211,6 @@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHL
 COPTS+=	${${ACTIVE_CC} == "clang":? -Wa,-Av8plus  :}
 .endif

-.if ${MACHINE_ARCH} == "vax"
-COPTS.nir.c += -O1
-.endif
-
 # XXXGCC12
 .if ${MACHINE_ARCH} == "m68k"
 COPTS.st_glsl_to_tgsi.cpp += -O1
diff --git a/external/mit/xorg/lib/gallium/Makefile b/external/mit/xorg/lib/gallium/Makefile
index 6778a8c11c8..9f1422080fe 100644
--- a/external/mit/xorg/lib/gallium/Makefile
+++ b/external/mit/xorg/lib/gallium/Makefile
@@ -1428,10 +1428,6 @@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHL
 COPTS+=	${${ACTIVE_CC} == "clang":? -Wa,-Av8plus  :}
 .endif

-.if ${MACHINE_ARCH} == "vax"
-COPTS.nir.c += -O1
-.endif
-
 COPTS.u_atomic.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-builtin-declaration-mismatch :}

 .include <bsd.lib.mk>
diff --git a/external/mit/xorg/lib/libX11/Makefile.libx11 b/external/mit/xorg/lib/libX11/Makefile.libx11
index e103d9ace12..0e55c2a4732 100644
--- a/external/mit/xorg/lib/libX11/Makefile.libx11
+++ b/external/mit/xorg/lib/libX11/Makefile.libx11
@@ -471,11 +471,6 @@ COPTS.OpenDis.c+=	-Wno-error	# XXX xf86bigfstr.h
 COPTS.XlibInt.c+=	-Wno-error	# XXX xcmiscstr.h
 COPTS.XKBBind.c+=	-Wno-deprecated-declarations	# uses XKeycodeToKeysym

-# XXX
-.if ${MACHINE} == "vax"
-COPTS.lcWrap.c+=	-O0
-.endif
-
 CWARNFLAGS.clang+=	-Wno-string-plus-int

 .include "${NETBSDSRCDIR}/external/mit/xorg/tools/makekeys/Makefile.makekeys"
diff --git a/games/gomoku/Makefile b/games/gomoku/Makefile
index e86a63aaea7..678537066ed 100644
--- a/games/gomoku/Makefile
+++ b/games/gomoku/Makefile
@@ -9,10 +9,6 @@ LDADD=	-lcurses -lterminfo
 HIDEGAME=hidegame
 CPPFLAGS+=	${DEBUG:D-DDEBUG}

-.if ${MACHINE} == "vax"
-COPTS.pickmove.c += -O0
-.endif
-
 #WARNS=		6	# would produce warnings about small integer types
 LINTFLAGS+=	-w	# treat warnings as errors
 LINTFLAGS+=	-T	# strict bool mode
diff --git a/games/phantasia/Makefile b/games/phantasia/Makefile
index e9c53f23ae5..b919dac17c6 100644
--- a/games/phantasia/Makefile
+++ b/games/phantasia/Makefile
@@ -52,7 +52,3 @@ map: map.c
 	./map | plot > /dev/tty

 .include <bsd.prog.mk>
-
-.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
-COPTS.misc.c+=	-O0
-.endif
diff --git a/lib/i18n_module/UTF7/Makefile b/lib/i18n_module/UTF7/Makefile
index 712c1515d42..7136f7f0cc3 100644
--- a/lib/i18n_module/UTF7/Makefile
+++ b/lib/i18n_module/UTF7/Makefile
@@ -3,6 +3,3 @@
 SRCPRE=citrus_
 .include <bsd.lib.mk>

-.if ${MACHINE_ARCH} == "vax" && defined(HAVE_GCC)
-COPTS.citrus_utf7.c+=	-O0
-.endif
diff --git a/lib/libbz2/Makefile b/lib/libbz2/Makefile
index b2aea1e04b0..e60a2862d48 100644
--- a/lib/libbz2/Makefile
+++ b/lib/libbz2/Makefile
@@ -15,11 +15,6 @@ SRCS=		blocksort.c huffman.c crctable.c randtable.c compress.c \
 INCS=		bzlib.h
 INCSDIR=	/usr/include

-# XXX huffman.c gets mis-compiled with 2.95.3
-.if ${MACHINE_ARCH} == "vax"
-COPTS+=		-O0
-.endif
-
 COPTS+=		${CC_WNO_IMPLICIT_FALLTHROUGH}

 # XXX blocksort.c gets mis-compiled with 4.1
diff --git a/lib/libc/gdtoa/Makefile.inc b/lib/libc/gdtoa/Makefile.inc
index 132686fc33d..609da919803 100644
--- a/lib/libc/gdtoa/Makefile.inc
+++ b/lib/libc/gdtoa/Makefile.inc
@@ -44,10 +44,3 @@ SRCS+=	dmisc.c \
 .if ${MACHINE_ARCH} != "vax"
 SRCS+=	strtord.c
 .endif
-
-# XXX revisit with newer GCC.
-# Ensure numbers like 0xffff319f5fa95963 print correctly
-# ("999999999999999.98", not garbage like "?A>C>@>C:BA;A><.:<")
-.if ${MACHINE_ARCH} == "vax" && defined(HAVE_GCC)
-COPTS.misc.c+=	-O0
-.endif
diff --git a/lib/libcrypt/Makefile b/lib/libcrypt/Makefile
index cb3f89d6d09..e9c8be820da 100644
--- a/lib/libcrypt/Makefile
+++ b/lib/libcrypt/Makefile
@@ -30,9 +30,6 @@ SRCS+=		crypt-argon2.c
 SRCS+=		${src}
 COPTS.${src}+=	-fvisibility=hidden
 .  endfor
-.  if ${MACHINE} == "vax"
-COPTS.blake2b.c+=	-O0
-.  endif
 .endif

 WARNS?=	5
diff --git a/libexec/ld.elf_so/Makefile b/libexec/ld.elf_so/Makefile
index f5baae1e883..24f7e1121e5 100644
--- a/libexec/ld.elf_so/Makefile
+++ b/libexec/ld.elf_so/Makefile
@@ -141,10 +141,6 @@ CPPFLAGS+=	-DRTLD_DEFAULT_LIBRARY_PATH=\"${SHLIBDIR}:${LIBDIR}\"
 COPTS.rtld.c+=	-Wno-stack-protector
 COPTS.symbol.c+=-Wno-stack-protector

-.if ${MACHINE_CPU} == "vax"
-COPTS.rtld.c+=	-O0
-.endif
-
 LDADD+=		-Wl,--version-script=${.CURDIR}/symbols.map
 LDADD+=		-L${CLIBOBJ} -L${DESTDIR}${LIBDIR}
 .if ${MKPICLIB} != "no"
diff --git a/sbin/fsck_ffs/Makefile.common b/sbin/fsck_ffs/Makefile.common
index 765638b2801..824e3bf2628 100644
--- a/sbin/fsck_ffs/Makefile.common
+++ b/sbin/fsck_ffs/Makefile.common
@@ -36,7 +36,3 @@ COPTS.ffs_appleufs.c+=	-Wno-pointer-sign
 .if ${MACHINE_ARCH} == "m68000"
 COPTS.pass1.c+=	-fno-tree-fre -fno-tree-lrs
 .endif
-.if ${MACHINE_ARCH} == "vax"
-COPTS.pass1.c+=	-O0
-COPTS.inode.c+=	-O0
-.endif
diff --git a/sbin/fsdb/Makefile b/sbin/fsdb/Makefile
index c039f73a1eb..3b0331e5880 100644
--- a/sbin/fsdb/Makefile
+++ b/sbin/fsdb/Makefile
@@ -39,12 +39,6 @@ COPTS.${f}.c+=	-Wno-pointer-sign
 COPTS.pass1.c+=	-fno-tree-fre -fno-tree-lrs
 .endif

-.if ${MACHINE_ARCH} == "vax"
-COPTS.pass1.c+=	-O0
-COPTS.inode.c+=	-O0
-COPTS.fsdb.c+=	-O0
-.endif
-
 CWARNFLAGS.gcc+=	${CC_WNO_ADDRESS_OF_PACKED_MEMBER}

 .include <bsd.prog.mk>
diff --git a/sbin/newfs_ext2fs/Makefile b/sbin/newfs_ext2fs/Makefile
index 40a44b9a038..ecfdbff4d3a 100644
--- a/sbin/newfs_ext2fs/Makefile
+++ b/sbin/newfs_ext2fs/Makefile
@@ -20,8 +20,4 @@ DPADD+=${LIBPROP}

 .PATH:	${NETBSDSRCDIR}/sys/ufs/ext2fs ${FSCK}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.mke2fs.c=-O0
-.endif
-
 .include <bsd.prog.mk>
diff --git a/sbin/ping/Makefile b/sbin/ping/Makefile
index 4f33501ea7a..1f7f56e3ea5 100644
--- a/sbin/ping/Makefile
+++ b/sbin/ping/Makefile
@@ -12,8 +12,4 @@ CPPFLAGS+=	-DIPSEC
 LDADD+= -lipsec
 DPADD+= ${LIBIPSEC}

-.if ${MACHINE_ARCH} == "vax"
-COPTS.ping.c=-O0
-.endif
-
 .include <bsd.prog.mk>
diff --git a/sys/arch/vax/conf/Makefile.vax b/sys/arch/vax/conf/Makefile.vax
index cf095d54a86..c483eaa644a 100644
--- a/sys/arch/vax/conf/Makefile.vax
+++ b/sys/arch/vax/conf/Makefile.vax
@@ -34,7 +34,6 @@ GENASSYM_CONF=	${VAX}/vax/genassym.cf
 CPPFLAGS+=	-D_VAX_INLINE_
 AFLAGS+=	-x assembler-with-cpp -fno-pic
 CFLAGS+=	-fno-pic
-COPTS.wsmux.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -O1 :}


 ##
diff --git a/sys/lib/libsa/Makefile b/sys/lib/libsa/Makefile
index 718c97ce857..4ef3840c753 100644
--- a/sys/lib/libsa/Makefile
+++ b/sys/lib/libsa/Makefile
@@ -96,7 +96,3 @@ SRCS+=	ufs.c
 lib${LIB}.o:: ${OBJS:O} __buildstdlib

 CPPFLAGS+=	-Wno-pointer-sign
-
-.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
-COPTS.bootp.c+=	-O0
-.endif
diff --git a/sys/lib/libz/Makefile b/sys/lib/libz/Makefile
index 6945c0da6c6..61fb7d4f652 100644
--- a/sys/lib/libz/Makefile
+++ b/sys/lib/libz/Makefile
@@ -25,7 +25,3 @@ CLEANFILES+= lib${LIB}.o
 .include <bsd.lib.mk>

 lib${LIB}.o:: ${OBJS:O} __buildstdlib
-
-.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
-COPTS.inftrees.c+=	-O0
-.endif
diff --git a/sys/modules/lfs/Makefile b/sys/modules/lfs/Makefile
index 962538821a5..ea8f187e160 100644
--- a/sys/modules/lfs/Makefile
+++ b/sys/modules/lfs/Makefile
@@ -18,9 +18,4 @@ SRCS+=	ulfs_bmap.c ulfs_dirhash.c ulfs_inode.c ulfs_lookup.c \

 WARNS=	3

-.if ${MACHINE} == "vax"
-# GCC 6.5 and 7.4 cannot compile this with -DDIAGNOSTIC and -O2/-O1
-COPTS.lfs_inode.c+=	-O0
-.endif
-
 .include <bsd.kmodule.mk>
diff --git a/sys/rump/fs/lib/liblfs/Makefile b/sys/rump/fs/lib/liblfs/Makefile
index abade3767d9..68b74c62502 100644
--- a/sys/rump/fs/lib/liblfs/Makefile
+++ b/sys/rump/fs/lib/liblfs/Makefile
@@ -17,9 +17,6 @@ SRCS+=	ulfs_bmap.c ulfs_dirhash.c ulfs_extattr.c 			\


 CFLAGS+=        -DLFS_KERNEL_RFW
-.if ${MACHINE_ARCH} == "vax"
-COPTS.lfs_inode.c+=-O0
-.endif

 .include <bsd.lib.mk>
 .include <bsd.klinks.mk>
diff --git a/usr.sbin/mtrace/Makefile b/usr.sbin/mtrace/Makefile
index aef09db6198..9c125c15265 100644
--- a/usr.sbin/mtrace/Makefile
+++ b/usr.sbin/mtrace/Makefile
@@ -12,10 +12,6 @@ PROG=	mtrace
 SRCS=	igmp.c inet.c kern.c mtrace.c
 MAN=	mtrace.8

-.if ${MACHINE_ARCH} == "vax"
-COPTS.mtrace.c=-O0
-.endif
-
 BINMODE=4555
 BINOWN= root

diff --git a/external/gpl3/gcc.old/usr.bin/backend/Makefile b/external/gpl3/gcc.old/usr.bin/backend/Makefile
index d69a26fe619..99e881c783d 100644
--- a/external/gpl3/gcc.old/usr.bin/backend/Makefile
+++ b/external/gpl3/gcc.old/usr.bin/backend/Makefile
@@ -533,68 +533,9 @@ COPTS.insn-recog.c+=-Wno-error

 .if ${GCC_MACHINE_ARCH} == "vax"
 CPPFLAGS+=-I${.CURDIR}/../../lib/libgcc/libgcov/arch/${GCC_MACHINE_ARCH}
-COPTS.builtins.c+=-O0
-COPTS.calls.c+=-O0
-COPTS.convert.c+=-O0
-COPTS.data-streamer-out.c+=-O0
-COPTS.dse.c+=-O0					# XXX port-vax/51967
-COPTS.dwarf2out.c+=-O0
-COPTS.expmed.c+=-O0
-COPTS.expr.c+=-O0 -Wno-error=tautological-compare
-COPTS.fixed-value.c+=-O0
-COPTS.fold-const.c+=-O0
-COPTS.generic-match.c+=-O0
-COPTS.gimple-fold.c+=-O0
-COPTS.gimple-match.c+=-O0
-COPTS.gimple-ssa-strength-reduction.c+=-O0
-COPTS.gimple-ssa-warn-restrict.c+=-O0
-COPTS.gimple.c+=-O0
-COPTS.internal-fn.c+=-O0
-COPTS.lto-streamer-out.c+=-O0
-COPTS.omp-low.c+=-O0
-COPTS.predict.c+=-O0
-COPTS.range-op.cc+=-O0
-COPTS.recog.c+=-O0
-COPTS.sanopt.c+=-O0
-COPTS.stmt.c+=-O0
-COPTS.stor-layout.c+=-O0
-COPTS.targhooks.c+=-O0
-COPTS.tree-affine.c+=-O0
-COPTS.tree-cfg.c+=-O0
-COPTS.tree-data-ref.c+=-O0
-COPTS.tree-eh.c+=-O0
-COPTS.tree-if-conv.c+=-O0
-COPTS.tree-object-size.c+=-O0
-COPTS.tree-parloops.c+=-O0
-COPTS.tree-predcom.c+=-O0
-COPTS.tree-pretty-print.c+=-O0
-COPTS.tree-ssa-alias.c+=-O0
-COPTS.tree-ssa-ccp.c+=-O0
-COPTS.tree-ssa-forwprop.c+=-O0
-COPTS.tree-ssa-loop-ivopts.c+=-O0
-COPTS.tree-ssa-loop-manip.c+=-O0
-COPTS.tree-ssa-loop-niter.c+=-O0
-COPTS.tree-ssa-math-opts.c+=-O0
-COPTS.tree-ssa-phiopt.c+= -O0
-COPTS.tree-ssa-pre.c+=-O0
-COPTS.tree-ssa-reassoc.c+=-O0
-COPTS.tree-ssa-strlen.c+=-O0
-COPTS.tree-ssa-uninit.c+=-O0
-COPTS.tree-ssa.c+=-O0
-COPTS.tree-switch-conversion.c+=-O0
-COPTS.tree-vect-data-refs.c+=-O0
-COPTS.tree-vect-loop-manip.c+=-O0
-COPTS.tree-vect-loop.c+=-O0
-COPTS.tree-vect-patterns.c+=-O0
-COPTS.tree-vect-stmts.c+=-O0
-COPTS.tree-vrp.c+=-O0
-COPTS.tree.c+=-O0
-COPTS.ubsan.c+=-O0
-COPTS.varasm.c+=-O0
-COPTS.vr-values.c+=-O0
-COPTS.web.c+=-O0
-COPTS.wide-int-range.cc+=-O0
-COPTS.wide-int.cc+=-O0
+
+COPTS.expmed.c+=-Wno-error=tautological-compare
+COPTS.expr.c+=-Wno-error=tautological-compare
 .else
 COPTS.tree.c=	${${ACTIVE_CC} == "clang" :? -O0 :}
 .endif
2023-10-07 12:15:49 +00:00
..
aac
accf_dataready
accf_httpready
acpiacad
acpibat
acpibut
acpicpu
acpidalb
acpifan
acpilid
acpipmtr
acpitz
acpiverbose add now required pci.h / NPCI. (the ia64 version builds with PCI 2022-06-01 00:50:24 +00:00
acpivga
acpiwdrt
acpiwmi
adiantum Create a loaable adiantum module, and make cgd require it. 2022-04-01 21:09:24 +00:00
adosfs
aht20temp A driver for the Aosong AHT20 temperature and humidity sensor. While 2022-11-17 19:20:05 +00:00
aibs
aio
am2315temp
amdgpu use CC_WNO_MAYBE_UNINITIALIZED and fix the clang build. 2023-09-10 15:12:39 +00:00
amdsmn
amdtemp
amdzentemp
amr
apple_smc
apple_smc_acpi
apple_smc_fan
apple_smc_temp
aps
arch Switch evbppc/ibm4xx to generic evbppc (same as oea) kernel modules. 2021-08-03 09:25:43 +00:00
asus
ataraid
ath
ath_hal adapt to ${CC_WNO_IMPLICIT_FALLTHROUGH} 2023-06-03 21:30:20 +00:00
ati_pcigart
au8522
audio
autofs
auvitek
blake2s Fix broken name 2021-08-18 09:07:07 +00:00
blowfish
bmx280thp Split the BMP280 / BME280 driver into common code and create I2C and 2022-12-03 01:04:42 +00:00
bmx280thpi2c Split the BMP280 / BME280 driver into common code and create I2C and 2022-12-03 01:04:42 +00:00
bpf
bpf_filter
bpfjit
bufq_disksort
bufq_fcfs
bufq_priocscan
bufq_readprio
cac
cac_eisa
cac_pci
camellia
cast128
ccd
cd9660
cgd
chfs
cir
clockctl
coda
coda5
compat_09
compat_10
compat_12
compat_13
compat_14
compat_16
compat_20 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_30 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_40
compat_43 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_50 Split the compat_50 module into two, separating the QUOTA-related 2020-01-21 02:37:16 +00:00
compat_50_quota Split the compat_50 module into two, separating the QUOTA-related 2020-01-21 02:37:16 +00:00
compat_60
compat_70
compat_80 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_90 Add a new member to struct vfsstat and grow the unused members 2019-09-22 22:59:37 +00:00
compat_100 Add missing file 2023-09-05 14:49:46 +00:00
compat_aoutm68k Move all non-emulation-specific coredump code into the coredump module, 2019-11-20 19:37:51 +00:00
compat_crypto_50 Split the module glue out from the rest of opencrypto/ocryptodev to 2020-01-27 17:09:17 +00:00
compat_freebsd Add quota option 2019-06-18 01:43:07 +00:00
compat_linux Add inotify (thanks Ryo) 2023-08-21 19:43:22 +00:00
compat_linux32 fix build for aarch64eb 2021-11-27 05:36:39 +00:00
compat_netbsd32 Add missing netbsd32_epoll.c 2023-08-30 12:18:59 +00:00
compat_netbsd32_09 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_12 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_13 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_16 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_20 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_30 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_40 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_43 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_50 Split out the quota code from the rest of compat_netbsd32 module. This 2020-03-12 15:02:29 +00:00
compat_netbsd32_60 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_80 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_90 Add a new member to struct vfsstat and grow the unused members 2019-09-22 22:59:37 +00:00
compat_netbsd32_100 Create compat_100 module infrastructure now that we have branched 2022-12-19 23:19:51 +00:00
compat_netbsd32_coredump Use opt_execfmt.h to get build options. 2020-11-04 20:54:20 +00:00
compat_netbsd32_mqueue Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_nfssrv Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_ptrace Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_quota Split out the quota code from the rest of compat_netbsd32 module. This 2020-03-12 15:02:29 +00:00
compat_netbsd32_quota_50 Split out the quota code from the rest of compat_netbsd32 module. This 2020-03-12 15:02:29 +00:00
compat_netbsd32_raid Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_sysvipc Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_sysvipc_10 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_sysvipc_14 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_netbsd32_sysvipc_50 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_ossaudio Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_raid_50 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_raid_80
compat_sunos
compat_sunos32
compat_sysctl_09_43 Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
compat_sysv_10
compat_sysv_14
compat_sysv_50
compat_util
coram
coredump bsd.own.mk: rename GCC_NO_* to CC_WNO_* 2023-06-03 09:09:01 +00:00
coretemp
crypto
cx24227
cxdtv
cyclic cyclic.kmod needs -Wno-sign-compare for aarch64 CPU_INFO_FOREACH. 2020-02-12 06:36:19 +00:00
dbcool
des
dk_subr
dm dm: Enable dm-error and dm-zero target 2019-12-16 14:26:23 +00:00
drm
drmkms drmkms: Fix module build. 2023-09-05 21:57:28 +00:00
drmkms_agp
drmkms_linux drm: Dust off module build a little. 2022-07-17 14:11:40 +00:00
drmkms_pci sys/modules/drmkms_pci: Remove drm_agpsupport.c. 2023-01-31 13:09:54 +00:00
drmkms_sched drmkms_sched: Remove duplicate module definition. 2022-07-28 10:42:45 +00:00
drmkms_ttm bsd.own.mk: rename GCC_NO_* to CC_WNO_* 2023-06-03 09:09:01 +00:00
drvctl
dtrace bsd.own.mk: rename GCC_NO_* to CC_WNO_* 2023-06-03 09:09:01 +00:00
dtv
dtv_math
efs
emdtv
emuxki emuxki(4): import a list of board definitions 2022-09-07 03:34:43 +00:00
est
examples Resolve conflicts for lua 5.4.4 import. 2023-04-16 20:46:16 +00:00
exec_aout Move all non-emulation-specific coredump code into the coredump module, 2019-11-20 19:37:51 +00:00
exec_ecoff
exec_elf32 Arrange so that no options COREDUMP and no options PTRACE work together. 2020-10-19 19:33:01 +00:00
exec_elf64 Arrange so that no options COREDUMP and no options PTRACE work together. 2020-10-19 19:33:01 +00:00
exec_script
ext2fs
fdesc
ffs bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER 2023-06-03 08:52:53 +00:00
filecore
finsio
flash
fss
fujbp
fujhk
gpio
gpioiic
gpioirq
gpioow
gpiopps
gpiosim
hdafg the HDAUDIO_ENABLE_HDMI option is obsolete. don't define here.. 2023-02-18 05:25:59 +00:00
hdaudio
hdaudio_pci
hdaudioverbose
hfs
hifn
hpacel bsd.own.mk: rename GCC_NO_* to CC_WNO_* 2023-06-03 09:09:01 +00:00
hpet
hpqlb
hythygtemp
i2c_bitbang
i2c_subr Split i2c_subr.c into a separate module rather than including it in 2022-04-01 15:49:11 +00:00
i2cexec
i915drm
i915drmkms apply some warning disables for GCC 12. 2023-09-04 21:45:35 +00:00
ichsmb
if_agr
if_alc
if_aq Add module build for aq(4) 2020-01-01 10:13:16 +00:00
if_ath_pci
if_athn_usb
if_aue add modules for all usbnet drivers not present. 2019-09-17 04:38:08 +00:00
if_axe
if_axen
if_cas
if_cdce add modules for all usbnet drivers not present. 2019-09-17 04:38:08 +00:00
if_cue add modules for all usbnet drivers not present. 2019-09-17 04:38:08 +00:00
if_faith
if_gif
if_gre
if_iavf Added iavf(4) that is based on OpenBSD's iavf(4) implementation 2020-09-08 10:05:47 +00:00
if_ixl Ported driver for Intel Ethernet 700 series 2019-12-10 12:08:52 +00:00
if_kue add modules for all usbnet drivers not present. 2019-09-17 04:38:08 +00:00
if_l2tp
if_lagg Add a new link-aggregation pseudo interface named lagg(4) 2021-05-17 04:07:41 +00:00
if_loop
if_mpls
if_mue
if_npflog
if_ppp
if_pppoe
if_rum
if_run
if_sl
if_smsc
if_srt
if_stf
if_tap
if_tun
if_udav Build an if_udav module (untested) 2019-08-08 16:06:14 +00:00
if_upl add modules for all usbnet drivers not present. 2019-09-17 04:38:08 +00:00
if_ure
if_url add modules for all usbnet drivers not present. 2019-09-17 04:38:08 +00:00
if_urndis add modules for all usbnet drivers not present. 2019-09-17 04:38:08 +00:00
if_urtwn
if_vioif
if_vlan
if_vmx modularize, and fix build error 2020-10-14 10:26:59 +00:00
if_wg Turn off ALTQ in if_wg module, to match default kernel configs 2022-01-27 14:18:40 +00:00
iic Split i2c_subr.c into a separate module rather than including it in 2022-04-01 15:49:11 +00:00
imc
imcsmb
ip_ecn
ipl bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER 2023-06-03 08:52:53 +00:00
ir
irmce
iscsi
itesio
kernfs
layerfs
ld
ld_aac
ld_amr
ld_ataraid
ld_cac
ld_icp
ld_mlx
ld_nvme
ld_sdmmc
ld_twa
ld_twe
ld_virtio
lfs Drop -O[01] hacks for vax; no longer necessary for patched GCC 10 2023-10-07 12:15:49 +00:00
lg3303
lm
lm_isa
lm_isa_common
lm_wbsio
lua bsd.own.mk: rename GCC_NO_* to CC_WNO_* 2023-06-03 09:09:01 +00:00
luapmf
luasystm subr_prf.c & luasystm.c: s/panicing/panicking/ in comments 2022-08-11 23:53:03 +00:00
mach64drm
mfs
mgadrm
midi Combine the midi and sequencer modules into a single midi_seq module 2022-06-04 03:31:10 +00:00
midi_seq Combine the midi and sequencer modules into a single midi_seq module 2022-06-04 03:31:10 +00:00
miiverbose
miniroot
mlx
mlx_eisa
mlx_pci
mqueue
msdos Move msdosfs_rename() and doscheckpath() to new file msdosfs_rename.c. 2021-10-23 07:41:37 +00:00
mt2131
nand
nandemulator
nfs
nfsserver
nilfs
npf bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER 2023-06-03 08:52:53 +00:00
npf_alg_icmp
npf_ext_log
npf_ext_normalize
npf_ext_rndblock
nsclpcsio
nsmb
ntfs
null
nvme
nvmm Upgrade NVMM to WARNS=5. 2020-08-05 10:33:01 +00:00
nxt2k
odcm
onewire
opencrypto Use correct pseudo-device for opencrypto module 2020-01-27 15:12:48 +00:00
overlay
owtemp make owtemp a module 2023-08-27 13:20:09 +00:00
pad
padlock
panic fix proplib deprecation 2021-06-21 03:04:27 +00:00
pciverbose
pf adapt to ${CC_WNO_IMPLICIT_FALLTHROUGH} 2023-06-03 21:30:20 +00:00
powernow
ppp_bsdcomp
ppp_deflate
procfs Kill WARNS = 3 2019-09-26 17:34:56 +00:00
pseye
ptrace
ptrace_common bsd.own.mk: rename GCC_NO_* to CC_WNO_* 2023-06-03 09:09:01 +00:00
ptyfs kill WARNS = 3 2019-09-26 18:36:08 +00:00
pud
puffs
putter
pwdog
r128drm
radeondrm adapt to ${CC_WNO_IMPLICIT_FALLTHROUGH} 2023-06-03 21:30:20 +00:00
raid We no longer need the deprecated copyback functionality now that 2023-09-25 21:59:38 +00:00
savagedrm adapt to ${CC_WNO_IMPLICIT_FALLTHROUGH} 2023-06-03 21:30:20 +00:00
scmd A driver and user land utility for the Sparkfun Serial Controlled Motor 2021-12-07 17:39:53 +00:00
scmdi2c A driver and user land utility for the Sparkfun Serial Controlled Motor 2021-12-07 17:39:53 +00:00
scsi_subr Split some common stuff into scsi_subr module. This enables loading 2022-04-14 16:50:26 +00:00
scsiverbose
sdtemp
secmodel_bsd44
secmodel_extensions
secmodel_overlay
securelevel
sequencer Combine the midi and sequencer modules into a single midi_seq module 2022-06-04 03:31:10 +00:00
sgp40mox A driver for the Sensirion SGP40 MOx gas sensor. An example of this 2021-10-14 13:54:45 +00:00
sht3xtemp Driver for the Sensirion SHT30/SHT31/SHT35 temperature and humidity 2021-11-06 13:34:39 +00:00
sht4xtemp A driver for the Sensirion SHT40/SHT41/SHT45 temperature and humidity 2021-10-03 17:27:02 +00:00
si70xxtemp
sisdrm
skipjack
slcompress bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER 2023-06-03 08:52:53 +00:00
sljit
smsc
sodium rename glue.c to sodium_module.c 2021-08-21 09:07:08 +00:00
solaris - Don't include <bsd.own.mk> It should be done by the enclosing Makefile 2021-04-15 17:26:07 +00:00
spdmem
spkr
sppp_subr
srt
suser
swcrypto
swsensor
swwdog
sysmon
sysmon_envsys
sysmon_power
sysmon_taskq
sysmon_wdog
sysv_ipc
sysvbfs
tap
tco
tdfxdrm
thinkpad
tmpfs
tprof
tprof_x86
tun
tvpll
twa
twe
ualea
uatp
uaudio
ubsec
udf bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER 2023-06-03 08:52:53 +00:00
ufs Now that UFS_DIRHASH is default for biuilt-in file system modules, we 2022-08-09 20:05:14 +00:00
umap
union
unionfs
usbnet introduce a library of common code / backends to share code between 2019-07-31 09:13:16 +00:00
usbverbose
uvideo
v7fs bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER 2023-06-03 08:52:53 +00:00
vboxdrm
vcoda
viac7temp
viadrmums adapt to ${CC_WNO_IMPLICIT_FALLTHROUGH} 2023-06-03 21:30:20 +00:00
vio9p Implement a front-end driver of virtio-9p called vio9p 2019-10-28 02:56:40 +00:00
viomb
vioscsi
virtio
virtio_pci
vmt move vmt(4) from MD to MI, and add support vmt on aarch64. tested on ESXi-Arm Fling 2020-10-27 08:57:10 +00:00
vnd
wapbl
wbsio
wmidell
wmieeepc
wmihp
wmimsi
wsbell
xc5k
xc3028
xldscripts
zfs - Don't define NEED_ISYSTEM. This is a rump thing and should be only exposed 2021-04-15 17:26:22 +00:00
zl10353
zlib adapt to ${CC_WNO_IMPLICIT_FALLTHROUGH} 2023-06-03 21:30:20 +00:00
Makefile make owtemp a module 2023-08-27 13:20:09 +00:00
Makefile.assym
Makefile.inc
README

README

$NetBSD: README,v 1.1 2008/11/13 10:06:46 ad Exp $

Do not automatically install modules that would fundamentally alter system
behaviour or create a security hole, as the system may automatically load
modules.