Module Name: src Committed By: mrg Date: Wed Aug 16 03:33:52 UTC 2023
Modified Files: src/external/bsd/ipf/bin/ipftest: Makefile Log Message: avoid a seems wrong GCC 12 use-after-free problem. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/external/bsd/ipf/bin/ipftest/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/ipf/bin/ipftest/Makefile diff -u src/external/bsd/ipf/bin/ipftest/Makefile:1.8 src/external/bsd/ipf/bin/ipftest/Makefile:1.9 --- src/external/bsd/ipf/bin/ipftest/Makefile:1.8 Sat Jun 3 09:09:03 2023 +++ src/external/bsd/ipf/bin/ipftest/Makefile Wed Aug 16 03:33:52 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2023/06/03 09:09:03 lukem Exp $ +# $NetBSD: Makefile,v 1.9 2023/08/16 03:33:52 mrg Exp $ .include <bsd.own.mk> @@ -111,4 +111,9 @@ COPTS.ipf_y.c+= -O1 COPTS.fil.c+= ${CC_WNO_STRINGOP_OVERFLOW} +# XXXGCC12 this seems wrong; all paths would end up with ref > 1. +.if defined(HAVE_GCC) && ${HAVE_GCC} >= 12 && ${ACTIVE_CC} == "gcc" +COPTS.ip_proxy.c+= -Wno-use-after-free +.endif + .include <bsd.prog.mk>