Module Name: src Committed By: christos Date: Tue Oct 29 21:14:37 UTC 2019
Modified Files: src/external/bsd/nvi/usr.bin/nvi: Makefile Log Message: PR/54656: Martin Husemann: gcc-8 miscompiles ex_filter.c even with -O1, make it -O0. The tm argument gets passed in as non-null and it is non-null after the command execution, but then becomes null and causes a null dereference. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/external/bsd/nvi/usr.bin/nvi/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/nvi/usr.bin/nvi/Makefile diff -u src/external/bsd/nvi/usr.bin/nvi/Makefile:1.19 src/external/bsd/nvi/usr.bin/nvi/Makefile:1.20 --- src/external/bsd/nvi/usr.bin/nvi/Makefile:1.19 Wed Jul 24 04:37:59 2019 +++ src/external/bsd/nvi/usr.bin/nvi/Makefile Tue Oct 29 17:14:37 2019 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2019/07/24 08:37:59 rin Exp $ +# $NetBSD: Makefile,v 1.20 2019/10/29 21:14:37 christos Exp $ .include <bsd.own.mk> @@ -114,6 +114,10 @@ version.h: ../../Makefile.inc # ${_MKTARGET_CREATE} # ${TOOL_PERL} -n ${.ALLSRC} > ${.TARGET} +.if ${MACHINE_ARCH} == "aarch64" +COPTS.ex_filter.c+=-O0 +.endif + .include "${.CURDIR}/../../Makefile.inc"