Commit e72c7e27 authored by John Baldwin's avatar John Baldwin
Browse files

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
parent 48759c4e
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment