Date: Tue, 10 May 2022 23:24:05 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: ed05f8fbeae7 - stable/13 - kernel: Disable errors for -Walloca-larger-than for GCC. Message-ID: <202205102324.24ANO5Zl072365@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ed05f8fbeae7eb63cc1e69c40b2a1351d4d42b52 commit ed05f8fbeae7eb63cc1e69c40b2a1351d4d42b52 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2021-09-25 18:24:35 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-10 22:51:49 +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 476997bfa01f..34f3447b8572 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -72,7 +72,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?202205102324.24ANO5Zl072365>