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

Reviewed by:	kib, emaste
Differential Revision:
parent 48759c4e
......@@ -69,7 +69,8 @@ CWARNEXTRA+= -Wno-error=memset-elt-size
CWARNEXTRA+= -Wno-error=packed-not-aligned
.if ${COMPILER_VERSION} >= 90100
CWARNEXTRA+= -Wno-address-of-packed-member
CWARNEXTRA+= -Wno-address-of-packed-member \
.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