git: e72c7e2738ca - main - kernel: Disable errors for -Walloca-larger-than for GCC.
John Baldwin
jhb at FreeBSD.org
Sat Sep 25 18:30:35 UTC 2021
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=e72c7e2738ca9f5893ba5e5e9dc120dfc82fabfd
commit e72c7e2738ca9f5893ba5e5e9dc120dfc82fabfd
Author: John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2021-09-25 18:24:35 +0000
Commit: John Baldwin <jhb at 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
More information about the dev-commits-src-main
mailing list