The branch main has been updated by jhb:

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

commit e72c7e2738ca9f5893ba5e5e9dc120dfc82fabfd
Author:     John Baldwin <j...@freebsd.org>
AuthorDate: 2021-09-25 18:24:35 +0000
Commit:     John Baldwin <j...@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
 
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to