git: 9d8607fa3fab - stable/12 - kernel: Disable errors for -Walloca-larger-than for GCC.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Mar 2023 22:28:44 UTC
The branch stable/12 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=9d8607fa3fab125d8df01e4940613beeb0f6cd38 commit 9d8607fa3fab125d8df01e4940613beeb0f6cd38 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2021-09-25 18:24:35 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-03-22 22:21:30 +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 (cherry picked from commit e72c7e2738ca9f5893ba5e5e9dc120dfc82fabfd) --- 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 4a36aae4db94..f1e59f2ce497 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -83,7 +83,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 .else # For gcc 4.2, eliminate the too-often-wrong warnings about uninitialized vars.