HomeFreeBSD

kernel: Disable errors for -Walloca-larger-than for GCC.

Description

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)

Details

Provenance
jhbAuthored on Sep 25 2021, 6:24 PM
Reviewer
kib
Differential Revision
D31934: kernel: Disable errors for -Walloca-larger-than for GCC.
Parents
rG37179c47d76a: arm64: Fix a logic bug in is_load_instr().
Branches
Unknown
Tags
Unknown