Module Name: src Committed By: rin Date: Sat Oct 7 12:15:54 UTC 2023
Modified Files: src/crypto/external/bsd/openssh/lib: Makefile src/distrib/utils/x_ping: Makefile src/external/apache2/argon2/lib/libargon2: Makefile.inc src/external/bsd/jemalloc/lib: Makefile.inc src/external/bsd/mdocml/lib/libmandoc: Makefile src/external/gpl3/binutils.old/lib/libbfd: Makefile src/external/gpl3/binutils/lib/libbfd: Makefile src/external/gpl3/gcc.old/lib: Makefile.sanitizer src/external/gpl3/gcc.old/lib/libasan: Makefile src/external/gpl3/gcc.old/lib/liblsan: Makefile src/external/gpl3/gcc.old/lib/libubsan: Makefile src/external/gpl3/gcc.old/usr.bin/backend: Makefile src/external/gpl3/gcc.old/usr.bin/cc1: Makefile src/external/gpl3/gcc.old/usr.bin/cc1obj: Makefile src/external/gpl3/gcc.old/usr.bin/cc1objplus: Makefile src/external/gpl3/gcc.old/usr.bin/cc1plus: Makefile src/external/gpl3/gcc.old/usr.bin/gcc: Makefile src/external/gpl3/gcc.old/usr.bin/libdecnumber: Makefile src/external/gpl3/gcc.old/usr.bin/lto-dump: Makefile src/external/gpl3/gcc.old/usr.bin/lto1: Makefile src/external/gpl3/gdb.old/lib/libdecnumber: Makefile src/external/gpl3/gdb/lib/libdecnumber: Makefile src/external/gpl3/gdb/lib/libgdb: Makefile src/external/mit/xorg/lib/gallium: Makefile src/external/mit/xorg/lib/gallium.old: Makefile src/external/mit/xorg/lib/libX11: Makefile.libx11 src/games/gomoku: Makefile src/games/phantasia: Makefile src/lib/i18n_module/UTF7: Makefile src/lib/libbz2: Makefile src/lib/libc/gdtoa: Makefile.inc src/lib/libcrypt: Makefile src/libexec/ld.elf_so: Makefile src/sbin/fsck_ffs: Makefile.common src/sbin/fsdb: Makefile src/sbin/newfs_ext2fs: Makefile src/sbin/ping: Makefile src/sys/arch/vax/conf: Makefile.vax src/sys/lib/libsa: Makefile src/sys/lib/libz: Makefile src/sys/modules/lfs: Makefile src/sys/rump/fs/lib/liblfs: Makefile src/usr.sbin/mtrace: Makefile Log Message: 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 To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/crypto/external/bsd/openssh/lib/Makefile cvs rdiff -u -r1.8 -r1.9 src/distrib/utils/x_ping/Makefile cvs rdiff -u -r1.1 -r1.2 \ src/external/apache2/argon2/lib/libargon2/Makefile.inc cvs rdiff -u -r1.15 -r1.16 src/external/bsd/jemalloc/lib/Makefile.inc cvs rdiff -u -r1.12 -r1.13 src/external/bsd/mdocml/lib/libmandoc/Makefile cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/binutils.old/lib/libbfd/Makefile cvs rdiff -u -r1.26 -r1.27 src/external/gpl3/binutils/lib/libbfd/Makefile cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc.old/lib/Makefile.sanitizer cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gcc.old/lib/libasan/Makefile cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc.old/lib/liblsan/Makefile cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc.old/lib/libubsan/Makefile cvs rdiff -u -r1.20 -r1.21 src/external/gpl3/gcc.old/usr.bin/backend/Makefile cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gcc.old/usr.bin/cc1/Makefile cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile cvs rdiff -u -r1.2 -r1.3 \ src/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gcc.old/usr.bin/gcc/Makefile cvs rdiff -u -r1.13 -r1.14 \ src/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc.old/usr.bin/lto1/Makefile cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gdb.old/lib/libdecnumber/Makefile cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/lib/libdecnumber/Makefile cvs rdiff -u -r1.35 -r1.36 src/external/gpl3/gdb/lib/libgdb/Makefile cvs rdiff -u -r1.50 -r1.51 src/external/mit/xorg/lib/gallium/Makefile cvs rdiff -u -r1.7 -r1.8 src/external/mit/xorg/lib/gallium.old/Makefile cvs rdiff -u -r1.25 -r1.26 src/external/mit/xorg/lib/libX11/Makefile.libx11 cvs rdiff -u -r1.12 -r1.13 src/games/gomoku/Makefile cvs rdiff -u -r1.37 -r1.38 src/games/phantasia/Makefile cvs rdiff -u -r1.4 -r1.5 src/lib/i18n_module/UTF7/Makefile cvs rdiff -u -r1.21 -r1.22 src/lib/libbz2/Makefile cvs rdiff -u -r1.12 -r1.13 src/lib/libc/gdtoa/Makefile.inc cvs rdiff -u -r1.35 -r1.36 src/lib/libcrypt/Makefile cvs rdiff -u -r1.147 -r1.148 src/libexec/ld.elf_so/Makefile cvs rdiff -u -r1.2 -r1.3 src/sbin/fsck_ffs/Makefile.common cvs rdiff -u -r1.42 -r1.43 src/sbin/fsdb/Makefile cvs rdiff -u -r1.6 -r1.7 src/sbin/newfs_ext2fs/Makefile cvs rdiff -u -r1.17 -r1.18 src/sbin/ping/Makefile cvs rdiff -u -r1.85 -r1.86 src/sys/arch/vax/conf/Makefile.vax cvs rdiff -u -r1.96 -r1.97 src/sys/lib/libsa/Makefile cvs rdiff -u -r1.23 -r1.24 src/sys/lib/libz/Makefile cvs rdiff -u -r1.10 -r1.11 src/sys/modules/lfs/Makefile cvs rdiff -u -r1.17 -r1.18 src/sys/rump/fs/lib/liblfs/Makefile cvs rdiff -u -r1.13 -r1.14 src/usr.sbin/mtrace/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/external/bsd/openssh/lib/Makefile diff -u src/crypto/external/bsd/openssh/lib/Makefile:1.37 src/crypto/external/bsd/openssh/lib/Makefile:1.38 --- src/crypto/external/bsd/openssh/lib/Makefile:1.37 Wed Jul 26 17:58:16 2023 +++ src/crypto/external/bsd/openssh/lib/Makefile Sat Oct 7 12:15:49 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.37 2023/07/26 17:58:16 christos Exp $ +# $NetBSD: Makefile,v 1.38 2023/10/07 12:15:49 rin Exp $ .include <bsd.own.mk> @@ -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 Index: src/distrib/utils/x_ping/Makefile diff -u src/distrib/utils/x_ping/Makefile:1.8 src/distrib/utils/x_ping/Makefile:1.9 --- src/distrib/utils/x_ping/Makefile:1.8 Sat Nov 9 21:39:27 2013 +++ src/distrib/utils/x_ping/Makefile Sat Oct 7 12:15:49 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2013/11/09 21:39:27 christos Exp $ +# $NetBSD: Makefile,v 1.9 2023/10/07 12:15:49 rin Exp $ # Build ping without IPSEC .include <bsd.own.mk> @@ -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} Index: src/external/apache2/argon2/lib/libargon2/Makefile.inc diff -u src/external/apache2/argon2/lib/libargon2/Makefile.inc:1.1 src/external/apache2/argon2/lib/libargon2/Makefile.inc:1.2 --- src/external/apache2/argon2/lib/libargon2/Makefile.inc:1.1 Tue May 17 18:55:41 2022 +++ src/external/apache2/argon2/lib/libargon2/Makefile.inc Sat Oct 7 12:15:49 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.1 2022/05/17 18:55:41 christos Exp $ +# $NetBSD: Makefile.inc,v 1.2 2023/10/07 12:15:49 rin Exp $ ARGON2DIR= ${NETBSDSRCDIR}/external/apache2/argon2/dist/phc-winner-argon2 @@ -16,7 +16,3 @@ CFLAGS+= -pthread LDADD+=-lpthread DPADD+=${LIBPTHREAD} .endif - -.if ${MACHINE} == "vax" -COPTS.blake2b.c+= -O0 -.endif Index: src/external/bsd/jemalloc/lib/Makefile.inc diff -u src/external/bsd/jemalloc/lib/Makefile.inc:1.15 src/external/bsd/jemalloc/lib/Makefile.inc:1.16 --- src/external/bsd/jemalloc/lib/Makefile.inc:1.15 Sun Aug 15 12:41:40 2021 +++ src/external/bsd/jemalloc/lib/Makefile.inc Sat Oct 7 12:15:50 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.15 2021/08/15 12:41:40 rillig Exp $ +# $NetBSD: Makefile.inc,v 1.16 2023/10/07 12:15:50 rin Exp $ JEMALLOC:=${.PARSEDIR}/.. @@ -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: \ Index: src/external/bsd/mdocml/lib/libmandoc/Makefile diff -u src/external/bsd/mdocml/lib/libmandoc/Makefile:1.12 src/external/bsd/mdocml/lib/libmandoc/Makefile:1.13 --- src/external/bsd/mdocml/lib/libmandoc/Makefile:1.12 Mon Mar 11 00:15:38 2019 +++ src/external/bsd/mdocml/lib/libmandoc/Makefile Sat Oct 7 12:15:50 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2019/03/11 00:15:38 christos Exp $ +# $NetBSD: Makefile,v 1.13 2023/10/07 12:15:50 rin Exp $ LIBISPRIVATE= yes @@ -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> Index: src/external/gpl3/binutils.old/lib/libbfd/Makefile diff -u src/external/gpl3/binutils.old/lib/libbfd/Makefile:1.9 src/external/gpl3/binutils.old/lib/libbfd/Makefile:1.10 --- src/external/gpl3/binutils.old/lib/libbfd/Makefile:1.9 Fri Dec 23 17:09:30 2022 +++ src/external/gpl3/binutils.old/lib/libbfd/Makefile Sat Oct 7 12:15:50 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2022/12/23 17:09:30 christos Exp $ +# $NetBSD: Makefile,v 1.10 2023/10/07 12:15:50 rin Exp $ NOLINKLIB= # defined NOLINT= # defined @@ -41,10 +41,6 @@ CPPFLAGS+= -I${.CURDIR}/arch/${BFD_MACHI -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 :} Index: src/external/gpl3/binutils/lib/libbfd/Makefile diff -u src/external/gpl3/binutils/lib/libbfd/Makefile:1.26 src/external/gpl3/binutils/lib/libbfd/Makefile:1.27 --- src/external/gpl3/binutils/lib/libbfd/Makefile:1.26 Fri Jan 13 15:56:28 2023 +++ src/external/gpl3/binutils/lib/libbfd/Makefile Sat Oct 7 12:15:50 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.26 2023/01/13 15:56:28 christos Exp $ +# $NetBSD: Makefile,v 1.27 2023/10/07 12:15:50 rin Exp $ NOLINKLIB= # defined NOLINT= # defined @@ -41,10 +41,6 @@ CPPFLAGS+= -I${.CURDIR}/arch/${BFD_MACHI -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 :} Index: src/external/gpl3/gcc.old/lib/Makefile.sanitizer diff -u src/external/gpl3/gcc.old/lib/Makefile.sanitizer:1.6 src/external/gpl3/gcc.old/lib/Makefile.sanitizer:1.7 --- src/external/gpl3/gcc.old/lib/Makefile.sanitizer:1.6 Mon Feb 20 02:11:57 2023 +++ src/external/gpl3/gcc.old/lib/Makefile.sanitizer Sat Oct 7 12:15:50 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.sanitizer,v 1.6 2023/02/20 02:11:57 mrg Exp $ +# $NetBSD: Makefile.sanitizer,v 1.7 2023/10/07 12:15:50 rin Exp $ SANITIZER=${GCCDIST}/libsanitizer .PATH: ${SANITIZER}/interception ${SANITIZER}/sanitizer_common @@ -88,22 +88,3 @@ COPTS+=-fno-builtin -fno-exceptions -fno # 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 Index: src/external/gpl3/gcc.old/lib/libasan/Makefile diff -u src/external/gpl3/gcc.old/lib/libasan/Makefile:1.10 src/external/gpl3/gcc.old/lib/libasan/Makefile:1.11 --- src/external/gpl3/gcc.old/lib/libasan/Makefile:1.10 Mon Feb 20 02:11:57 2023 +++ src/external/gpl3/gcc.old/lib/libasan/Makefile Sat Oct 7 12:15:50 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2023/02/20 02:11:57 mrg Exp $ +# $NetBSD: Makefile,v 1.11 2023/10/07 12:15:50 rin Exp $ UNSUPPORTED_COMPILER.clang= # defined NOSANITIZER= # defined @@ -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 Index: src/external/gpl3/gcc.old/lib/liblsan/Makefile diff -u src/external/gpl3/gcc.old/lib/liblsan/Makefile:1.6 src/external/gpl3/gcc.old/lib/liblsan/Makefile:1.7 --- src/external/gpl3/gcc.old/lib/liblsan/Makefile:1.6 Mon Feb 20 02:12:15 2023 +++ src/external/gpl3/gcc.old/lib/liblsan/Makefile Sat Oct 7 12:15:50 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2023/02/20 02:12:15 mrg Exp $ +# $NetBSD: Makefile,v 1.7 2023/10/07 12:15:50 rin Exp $ .include <bsd.own.mk> @@ -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 Index: src/external/gpl3/gcc.old/lib/libubsan/Makefile diff -u src/external/gpl3/gcc.old/lib/libubsan/Makefile:1.7 src/external/gpl3/gcc.old/lib/libubsan/Makefile:1.8 --- src/external/gpl3/gcc.old/lib/libubsan/Makefile:1.7 Fri Jul 14 19:46:40 2023 +++ src/external/gpl3/gcc.old/lib/libubsan/Makefile Sat Oct 7 12:15:50 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2023/07/14 19:46:40 mrg Exp $ +# $NetBSD: Makefile,v 1.8 2023/10/07 12:15:50 rin Exp $ UNSUPPORTED_COMPILER.clang= # defined LIBISCXX = yes @@ -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 Index: src/external/gpl3/gcc.old/usr.bin/backend/Makefile diff -u src/external/gpl3/gcc.old/usr.bin/backend/Makefile:1.20 src/external/gpl3/gcc.old/usr.bin/backend/Makefile:1.21 --- src/external/gpl3/gcc.old/usr.bin/backend/Makefile:1.20 Sat Oct 7 12:13:36 2023 +++ src/external/gpl3/gcc.old/usr.bin/backend/Makefile Sat Oct 7 12:15:51 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2023/10/07 12:13:36 rin Exp $ +# $NetBSD: Makefile,v 1.21 2023/10/07 12:15:51 rin Exp $ HOSTPROG_CXX= 1 LIBISPRIVATE= yes @@ -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 Index: src/external/gpl3/gcc.old/usr.bin/cc1/Makefile diff -u src/external/gpl3/gcc.old/usr.bin/cc1/Makefile:1.11 src/external/gpl3/gcc.old/usr.bin/cc1/Makefile:1.12 --- src/external/gpl3/gcc.old/usr.bin/cc1/Makefile:1.11 Mon Feb 20 02:12:29 2023 +++ src/external/gpl3/gcc.old/usr.bin/cc1/Makefile Sat Oct 7 12:15:51 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2023/02/20 02:12:29 mrg Exp $ +# $NetBSD: Makefile,v 1.12 2023/10/07 12:15:51 rin Exp $ PROG= cc1 SRCS= ${G_C_OBJS:S,c-family/,,:S,c/,,:S,known-headers.o,known-headers.cc,:S,c-spellcheck.o,c-spellcheck.cc,:Nlibcpp.a:.o=.c} @@ -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 Index: src/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile diff -u src/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile:1.11 src/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile:1.12 --- src/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile:1.11 Mon Feb 20 02:12:29 2023 +++ src/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile Sat Oct 7 12:15:51 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2023/02/20 02:12:29 mrg Exp $ +# $NetBSD: Makefile,v 1.12 2023/10/07 12:15:51 rin Exp $ MYOBJS= ${G_OBJC_OBJS} ${G_C_AND_OBJC_OBJS} PROG= cc1obj @@ -44,16 +44,8 @@ COPTS.objc-act.c+= -Wno-stack-protecto 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 Index: src/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile diff -u src/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile:1.2 src/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile:1.3 --- src/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile:1.2 Mon Feb 20 02:12:29 2023 +++ src/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile Sat Oct 7 12:15:51 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2023/02/20 02:12:29 mrg Exp $ +# $NetBSD: Makefile,v 1.3 2023/10/07 12:15:51 rin Exp $ # XXX: Pull this (G_OBJCXX_OBJS) out with mknative-gcc. Needs some # minor re-org of cc1plus and perhaps cc1obj. G_CXX_AND_OBJCXX_OBJS @@ -69,18 +69,6 @@ COPTS.objc-act.c+= -Wno-stack-protecto 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 Index: src/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile diff -u src/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile:1.12 src/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile:1.13 --- src/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile:1.12 Mon Feb 20 02:12:29 2023 +++ src/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile Sat Oct 7 12:15:51 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2023/02/20 02:12:29 mrg Exp $ +# $NetBSD: Makefile,v 1.13 2023/10/07 12:15:51 rin Exp $ PROG= cc1plus SRCS= ${G_CXX_OBJS:S,c-family/,,:S,cp/,,:S,constraint.o,constraint.cc,:S,logic.o,logic.cc,:S,known-headers.o,known-headers.cc,:S,c-spellcheck.o,c-spellcheck.cc,:S,coroutines.o,coroutines.cc,:Nlibcpp.a:.o=.c} @@ -31,23 +31,6 @@ CHECKSUM_OBJS= ${LIBBACKTRACEOBJ}/libbac 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 Index: src/external/gpl3/gcc.old/usr.bin/gcc/Makefile diff -u src/external/gpl3/gcc.old/usr.bin/gcc/Makefile:1.10 src/external/gpl3/gcc.old/usr.bin/gcc/Makefile:1.11 --- src/external/gpl3/gcc.old/usr.bin/gcc/Makefile:1.10 Mon Feb 20 02:12:30 2023 +++ src/external/gpl3/gcc.old/usr.bin/gcc/Makefile Sat Oct 7 12:15:51 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2023/02/20 02:12:30 mrg Exp $ +# $NetBSD: Makefile,v 1.11 2023/10/07 12:15:51 rin Exp $ PROG= gcc SRCS= gccspec.c ${G_GCC_OBJS:.o=.c} @@ -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 Index: src/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile diff -u src/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile:1.13 src/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile:1.14 --- src/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile:1.13 Fri Jul 14 19:46:45 2023 +++ src/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile Sat Oct 7 12:15:51 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2023/07/14 19:46:45 mrg Exp $ +# $NetBSD: Makefile,v 1.14 2023/10/07 12:15:51 rin Exp $ DIST= ${GCCDIST} GNUHOSTDIST= ${DIST} @@ -14,10 +14,6 @@ SRCS= decNumber.c decContext.c decimal3 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 Index: src/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile diff -u src/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile:1.2 src/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile:1.3 --- src/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile:1.2 Mon Feb 20 02:12:36 2023 +++ src/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile Sat Oct 7 12:15:51 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2023/02/20 02:12:36 mrg Exp $ +# $NetBSD: Makefile,v 1.3 2023/10/07 12:15:51 rin Exp $ PROG= lto-dump # XXX pullout from LTO_DUMP_OBJS @@ -24,11 +24,6 @@ COPTS.lto-common.c+= -Wno-stack-protecto .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} Index: src/external/gpl3/gcc.old/usr.bin/lto1/Makefile diff -u src/external/gpl3/gcc.old/usr.bin/lto1/Makefile:1.8 src/external/gpl3/gcc.old/usr.bin/lto1/Makefile:1.9 --- src/external/gpl3/gcc.old/usr.bin/lto1/Makefile:1.8 Mon Feb 20 02:12:37 2023 +++ src/external/gpl3/gcc.old/usr.bin/lto1/Makefile Sat Oct 7 12:15:52 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2023/02/20 02:12:37 mrg Exp $ +# $NetBSD: Makefile,v 1.9 2023/10/07 12:15:52 rin Exp $ PROG= lto1 SRCS= attribs.c \ @@ -21,11 +21,6 @@ COPTS.lto-common.c+= -Wno-stack-protecto .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 Index: src/external/gpl3/gdb.old/lib/libdecnumber/Makefile diff -u src/external/gpl3/gdb.old/lib/libdecnumber/Makefile:1.9 src/external/gpl3/gdb.old/lib/libdecnumber/Makefile:1.10 --- src/external/gpl3/gdb.old/lib/libdecnumber/Makefile:1.9 Tue Mar 21 16:55:34 2023 +++ src/external/gpl3/gdb.old/lib/libdecnumber/Makefile Sat Oct 7 12:15:52 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2023/03/21 16:55:34 christos Exp $ +# $NetBSD: Makefile,v 1.10 2023/10/07 12:15:52 rin Exp $ .include <bsd.own.mk> .include "../Makefile.inc" @@ -18,10 +18,6 @@ CPPFLAGS+= -I${.CURDIR}/arch/${GDB_MACHI 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> Index: src/external/gpl3/gdb/lib/libdecnumber/Makefile diff -u src/external/gpl3/gdb/lib/libdecnumber/Makefile:1.4 src/external/gpl3/gdb/lib/libdecnumber/Makefile:1.5 --- src/external/gpl3/gdb/lib/libdecnumber/Makefile:1.4 Wed Aug 9 21:09:08 2023 +++ src/external/gpl3/gdb/lib/libdecnumber/Makefile Sat Oct 7 12:15:52 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2023/08/09 21:09:08 christos Exp $ +# $NetBSD: Makefile,v 1.5 2023/10/07 12:15:52 rin Exp $ .include <bsd.own.mk> .include "../Makefile.inc" @@ -18,10 +18,6 @@ CPPFLAGS+= -I${.CURDIR}/arch/${GDB_MACHI 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> Index: src/external/gpl3/gdb/lib/libgdb/Makefile diff -u src/external/gpl3/gdb/lib/libgdb/Makefile:1.35 src/external/gpl3/gdb/lib/libgdb/Makefile:1.36 --- src/external/gpl3/gdb/lib/libgdb/Makefile:1.35 Wed Aug 9 22:14:23 2023 +++ src/external/gpl3/gdb/lib/libgdb/Makefile Sat Oct 7 12:15:52 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.35 2023/08/09 22:14:23 christos Exp $ +# $NetBSD: Makefile,v 1.36 2023/10/07 12:15:52 rin Exp $ NOCTF= HOSTPROG_CXX= 1 @@ -66,12 +66,6 @@ CFLAGS:= ${CXXFLAGS} -std=gnu++17 -Wno- 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 \ Index: src/external/mit/xorg/lib/gallium/Makefile diff -u src/external/mit/xorg/lib/gallium/Makefile:1.50 src/external/mit/xorg/lib/gallium/Makefile:1.51 --- src/external/mit/xorg/lib/gallium/Makefile:1.50 Sun Jul 16 22:20:54 2023 +++ src/external/mit/xorg/lib/gallium/Makefile Sat Oct 7 12:15:52 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.50 2023/07/16 22:20:54 rjs Exp $ +# $NetBSD: Makefile,v 1.51 2023/10/07 12:15:52 rin Exp $ # Link the gallium mega driver. @@ -1428,10 +1428,6 @@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR} 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> Index: src/external/mit/xorg/lib/gallium.old/Makefile diff -u src/external/mit/xorg/lib/gallium.old/Makefile:1.7 src/external/mit/xorg/lib/gallium.old/Makefile:1.8 --- src/external/mit/xorg/lib/gallium.old/Makefile:1.7 Tue Aug 8 06:27:31 2023 +++ src/external/mit/xorg/lib/gallium.old/Makefile Sat Oct 7 12:15:52 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2023/08/08 06:27:31 mrg Exp $ +# $NetBSD: Makefile,v 1.8 2023/10/07 12:15:52 rin Exp $ # Transparent struct/union broken NOLINT=yes @@ -1211,10 +1211,6 @@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR} 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 Index: src/external/mit/xorg/lib/libX11/Makefile.libx11 diff -u src/external/mit/xorg/lib/libX11/Makefile.libx11:1.25 src/external/mit/xorg/lib/libX11/Makefile.libx11:1.26 --- src/external/mit/xorg/lib/libX11/Makefile.libx11:1.25 Fri Oct 28 09:43:58 2022 +++ src/external/mit/xorg/lib/libX11/Makefile.libx11 Sat Oct 7 12:15:52 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.libx11,v 1.25 2022/10/28 09:43:58 wiz Exp $ +# $NetBSD: Makefile.libx11,v 1.26 2023/10/07 12:15:52 rin Exp $ LIB= X11 .PATH: ${X11SRCDIR.${LIB}}/src @@ -471,11 +471,6 @@ COPTS.OpenDis.c+= -Wno-error # XXX xf86b 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" Index: src/games/gomoku/Makefile diff -u src/games/gomoku/Makefile:1.12 src/games/gomoku/Makefile:1.13 --- src/games/gomoku/Makefile:1.12 Tue May 31 19:11:58 2022 +++ src/games/gomoku/Makefile Sat Oct 7 12:15:52 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2022/05/31 19:11:58 christos Exp $ +# $NetBSD: Makefile,v 1.13 2023/10/07 12:15:52 rin Exp $ # @(#)Makefile 8.1 (Berkeley) 7/24/94 PROG= gomoku @@ -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 Index: src/games/phantasia/Makefile diff -u src/games/phantasia/Makefile:1.37 src/games/phantasia/Makefile:1.38 --- src/games/phantasia/Makefile:1.37 Sat Jun 14 20:49:37 2014 +++ src/games/phantasia/Makefile Sat Oct 7 12:15:52 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.37 2014/06/14 20:49:37 mrg Exp $ +# $NetBSD: Makefile,v 1.38 2023/10/07 12:15:52 rin Exp $ # @(#)Makefile 8.1 (Berkeley) 5/31/93 .include <bsd.own.mk> @@ -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 Index: src/lib/i18n_module/UTF7/Makefile diff -u src/lib/i18n_module/UTF7/Makefile:1.4 src/lib/i18n_module/UTF7/Makefile:1.5 --- src/lib/i18n_module/UTF7/Makefile:1.4 Mon Jun 20 06:52:36 2011 +++ src/lib/i18n_module/UTF7/Makefile Sat Oct 7 12:15:53 2023 @@ -1,8 +1,5 @@ -# $NetBSD: Makefile,v 1.4 2011/06/20 06:52:36 mrg Exp $ +# $NetBSD: Makefile,v 1.5 2023/10/07 12:15:53 rin Exp $ SRCPRE=citrus_ .include <bsd.lib.mk> -.if ${MACHINE_ARCH} == "vax" && defined(HAVE_GCC) -COPTS.citrus_utf7.c+= -O0 -.endif Index: src/lib/libbz2/Makefile diff -u src/lib/libbz2/Makefile:1.21 src/lib/libbz2/Makefile:1.22 --- src/lib/libbz2/Makefile:1.21 Sat Jun 3 21:30:21 2023 +++ src/lib/libbz2/Makefile Sat Oct 7 12:15:53 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2023/06/03 21:30:21 lukem Exp $ +# $NetBSD: Makefile,v 1.22 2023/10/07 12:15:53 rin Exp $ USE_FORT?= yes # data driven bugs? @@ -15,11 +15,6 @@ SRCS= blocksort.c huffman.c crctable.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 Index: src/lib/libc/gdtoa/Makefile.inc diff -u src/lib/libc/gdtoa/Makefile.inc:1.12 src/lib/libc/gdtoa/Makefile.inc:1.13 --- src/lib/libc/gdtoa/Makefile.inc:1.12 Sun Dec 4 22:35:15 2022 +++ src/lib/libc/gdtoa/Makefile.inc Sat Oct 7 12:15:53 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.12 2022/12/04 22:35:15 jakllsch Exp $ +# $NetBSD: Makefile.inc,v 1.13 2023/10/07 12:15:53 rin Exp $ # gdtoa sources .PATH: ${.CURDIR}/gdtoa @@ -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 Index: src/lib/libcrypt/Makefile diff -u src/lib/libcrypt/Makefile:1.35 src/lib/libcrypt/Makefile:1.36 --- src/lib/libcrypt/Makefile:1.35 Mon Sep 4 23:00:48 2023 +++ src/lib/libcrypt/Makefile Sat Oct 7 12:15:53 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.35 2023/09/04 23:00:48 mrg Exp $ +# $NetBSD: Makefile,v 1.36 2023/10/07 12:15:53 rin Exp $ USE_FORT?= yes # cryptographic software @@ -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 Index: src/libexec/ld.elf_so/Makefile diff -u src/libexec/ld.elf_so/Makefile:1.147 src/libexec/ld.elf_so/Makefile:1.148 --- src/libexec/ld.elf_so/Makefile:1.147 Sun Jul 30 09:20:14 2023 +++ src/libexec/ld.elf_so/Makefile Sat Oct 7 12:15:53 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.147 2023/07/30 09:20:14 riastradh Exp $ +# $NetBSD: Makefile,v 1.148 2023/10/07 12:15:53 rin Exp $ # # NOTE: when changing ld.so, ensure that ldd still compiles. # @@ -141,10 +141,6 @@ CPPFLAGS+= -DRTLD_DEFAULT_LIBRARY_PATH=\ 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" Index: src/sbin/fsck_ffs/Makefile.common diff -u src/sbin/fsck_ffs/Makefile.common:1.2 src/sbin/fsck_ffs/Makefile.common:1.3 --- src/sbin/fsck_ffs/Makefile.common:1.2 Mon Oct 28 22:52:43 2019 +++ src/sbin/fsck_ffs/Makefile.common Sat Oct 7 12:15:53 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.2 2019/10/28 22:52:43 christos Exp $ +# $NetBSD: Makefile.common,v 1.3 2023/10/07 12:15:53 rin Exp $ # @(#)Makefile 8.2 (Berkeley) 4/27/95 # shared stuff with src/distrib/utils/x_newfs for install media. @@ -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 Index: src/sbin/fsdb/Makefile diff -u src/sbin/fsdb/Makefile:1.42 src/sbin/fsdb/Makefile:1.43 --- src/sbin/fsdb/Makefile:1.42 Sat Jun 3 08:52:55 2023 +++ src/sbin/fsdb/Makefile Sat Oct 7 12:15:53 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.42 2023/06/03 08:52:55 lukem Exp $ +# $NetBSD: Makefile,v 1.43 2023/10/07 12:15:53 rin Exp $ # @(#)Makefile 8.1 (Berkeley) 6/5/93 .include <bsd.own.mk> @@ -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> Index: src/sbin/newfs_ext2fs/Makefile diff -u src/sbin/newfs_ext2fs/Makefile:1.6 src/sbin/newfs_ext2fs/Makefile:1.7 --- src/sbin/newfs_ext2fs/Makefile:1.6 Sat Nov 9 21:39:27 2013 +++ src/sbin/newfs_ext2fs/Makefile Sat Oct 7 12:15:53 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2013/11/09 21:39:27 christos Exp $ +# $NetBSD: Makefile,v 1.7 2023/10/07 12:15:53 rin Exp $ # @(#)Makefile 8.2 (Berkeley) 3/27/94 CWARNFLAGS+= -Wno-sign-compare @@ -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> Index: src/sbin/ping/Makefile diff -u src/sbin/ping/Makefile:1.17 src/sbin/ping/Makefile:1.18 --- src/sbin/ping/Makefile:1.17 Sat Nov 9 21:39:27 2013 +++ src/sbin/ping/Makefile Sat Oct 7 12:15:54 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2013/11/09 21:39:27 christos Exp $ +# $NetBSD: Makefile,v 1.18 2023/10/07 12:15:54 rin Exp $ # @(#)Makefile 8.1 (Berkeley) 6/5/93 USE_FORT?= yes # setuid @@ -12,8 +12,4 @@ CPPFLAGS+= -DIPSEC LDADD+= -lipsec DPADD+= ${LIBIPSEC} -.if ${MACHINE_ARCH} == "vax" -COPTS.ping.c=-O0 -.endif - .include <bsd.prog.mk> Index: src/sys/arch/vax/conf/Makefile.vax diff -u src/sys/arch/vax/conf/Makefile.vax:1.85 src/sys/arch/vax/conf/Makefile.vax:1.86 --- src/sys/arch/vax/conf/Makefile.vax:1.85 Tue Sep 15 05:08:07 2020 +++ src/sys/arch/vax/conf/Makefile.vax Sat Oct 7 12:15:54 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.vax,v 1.85 2020/09/15 05:08:07 mrg Exp $ +# $NetBSD: Makefile.vax,v 1.86 2023/10/07 12:15:54 rin Exp $ # Makefile for NetBSD # @@ -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 :} ## Index: src/sys/lib/libsa/Makefile diff -u src/sys/lib/libsa/Makefile:1.96 src/sys/lib/libsa/Makefile:1.97 --- src/sys/lib/libsa/Makefile:1.96 Wed Aug 30 18:47:37 2023 +++ src/sys/lib/libsa/Makefile Sat Oct 7 12:15:54 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.96 2023/08/30 18:47:37 christos Exp $ +# $NetBSD: Makefile,v 1.97 2023/10/07 12:15:54 rin Exp $ LIB= sa LIBISPRIVATE?= yes @@ -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 Index: src/sys/lib/libz/Makefile diff -u src/sys/lib/libz/Makefile:1.23 src/sys/lib/libz/Makefile:1.24 --- src/sys/lib/libz/Makefile:1.23 Tue Jun 5 00:57:47 2018 +++ src/sys/lib/libz/Makefile Sat Oct 7 12:15:54 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2018/06/05 00:57:47 christos Exp $ +# $NetBSD: Makefile,v 1.24 2023/10/07 12:15:54 rin Exp $ LIB= z LIBISPRIVATE= yes @@ -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 Index: src/sys/modules/lfs/Makefile diff -u src/sys/modules/lfs/Makefile:1.10 src/sys/modules/lfs/Makefile:1.11 --- src/sys/modules/lfs/Makefile:1.10 Sun Feb 17 14:04:31 2019 +++ src/sys/modules/lfs/Makefile Sat Oct 7 12:15:54 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2019/02/17 14:04:31 rin Exp $ +# $NetBSD: Makefile,v 1.11 2023/10/07 12:15:54 rin Exp $ .include "../Makefile.inc" @@ -18,9 +18,4 @@ SRCS+= ulfs_bmap.c ulfs_dirhash.c ulfs_i 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> Index: src/sys/rump/fs/lib/liblfs/Makefile diff -u src/sys/rump/fs/lib/liblfs/Makefile:1.17 src/sys/rump/fs/lib/liblfs/Makefile:1.18 --- src/sys/rump/fs/lib/liblfs/Makefile:1.17 Mon Sep 7 03:09:53 2020 +++ src/sys/rump/fs/lib/liblfs/Makefile Sat Oct 7 12:15:54 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2020/09/07 03:09:53 mrg Exp $ +# $NetBSD: Makefile,v 1.18 2023/10/07 12:15:54 rin Exp $ # .PATH: ${.CURDIR}/../../../../ufs/lfs @@ -17,9 +17,6 @@ SRCS+= ulfs_bmap.c ulfs_dirhash.c ulfs_e CFLAGS+= -DLFS_KERNEL_RFW -.if ${MACHINE_ARCH} == "vax" -COPTS.lfs_inode.c+=-O0 -.endif .include <bsd.lib.mk> .include <bsd.klinks.mk> Index: src/usr.sbin/mtrace/Makefile diff -u src/usr.sbin/mtrace/Makefile:1.13 src/usr.sbin/mtrace/Makefile:1.14 --- src/usr.sbin/mtrace/Makefile:1.13 Sat Jun 3 08:53:00 2023 +++ src/usr.sbin/mtrace/Makefile Sat Oct 7 12:15:54 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2023/06/03 08:53:00 lukem Exp $ +# $NetBSD: Makefile,v 1.14 2023/10/07 12:15:54 rin Exp $ # from: Id: Makefile,v 1.5 1993/06/24 05:11:16 deering Exp .include <bsd.own.mk> @@ -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