apply -Wno-dangling-pointer to callcontext.c.
puffs_cc_getcc() uses a mask against a stack variable to find the struct puffs_cc stashed below the stack, triggering the dangling pointer problem.
This commit is contained in:
parent
eaa230d2aa
commit
c580d690fa
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.29 2023/03/31 04:51:32 rillig Exp $
|
||||
# $NetBSD: Makefile,v 1.30 2023/09/05 00:12:14 mrg Exp $
|
||||
#
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
@ -20,4 +20,8 @@ LINTFLAGS+=-S -w
|
|||
LINTFLAGS+= -X 351 # extern declaration outside header
|
||||
LINTFLAGS+= -X 352 # nested extern declaration
|
||||
|
||||
# XXXGCC12 - accesses struct puffs_cc* via stack pointers, returns the
|
||||
# address to caller
|
||||
COPTS.callcontext.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 12:? -Wno-dangling-pointer :}
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
|
Loading…
Reference in New Issue