Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/nvi/usr.bin/nvi PR/54656: Martin Husemann: gcc-...



details:   https://anonhg.NetBSD.org/src/rev/57bdc8503dec
branches:  trunk
changeset: 460642:57bdc8503dec
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 29 21:14:37 2019 +0000

description:
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.

diffstat:

 external/bsd/nvi/usr.bin/nvi/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r aac4c51a0585 -r 57bdc8503dec external/bsd/nvi/usr.bin/nvi/Makefile
--- a/external/bsd/nvi/usr.bin/nvi/Makefile     Tue Oct 29 20:01:22 2019 +0000
+++ b/external/bsd/nvi/usr.bin/nvi/Makefile     Tue Oct 29 21:14:37 2019 +0000
@@ -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 @@
 #      ${_MKTARGET_CREATE}
 #      ${TOOL_PERL} -n ${.ALLSRC} > ${.TARGET}
 
+.if ${MACHINE_ARCH} == "aarch64"
+COPTS.ex_filter.c+=-O0
+.endif
+
 
 .include "${.CURDIR}/../../Makefile.inc"
 



Home | Main Index | Thread Index | Old Index