Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Sep 2021 18:30:35 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: e72c7e2738ca - main - kernel: Disable errors for -Walloca-larger-than for GCC.
Message-ID:  <202109251830.18PIUZpF001739@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=e72c7e2738ca9f5893ba5e5e9dc120dfc82fabfd

commit e72c7e2738ca9f5893ba5e5e9dc120dfc82fabfd
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-09-25 18:24:35 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2021-09-25 18:24:35 +0000

    kernel: Disable errors for -Walloca-larger-than for GCC.
    
    GCC complains about the use of alloca() with variable sizes (for XSAVE
    state len) in sendsig() for i386.  Modern XSAVE state is probably
    getting a bit large for the i386 kstack, but downgrade the error to a
    warning.
    
    Reviewed by:    kib, emaste
    Differential Revision:  https://reviews.freebsd.org/D31934
---
 sys/conf/kern.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index f6767ba76a46..859719db0083 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -69,7 +69,8 @@ CWARNEXTRA+=	-Wno-error=memset-elt-size
 CWARNEXTRA+=	-Wno-error=packed-not-aligned
 .endif
 .if ${COMPILER_VERSION} >= 90100
-CWARNEXTRA+=	-Wno-address-of-packed-member
+CWARNEXTRA+=	-Wno-address-of-packed-member			\
+		-Wno-error=alloca-larger-than=
 .endif
 .endif	# gcc
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109251830.18PIUZpF001739>