HomeFreeBSD

dtrace: avoid gcc9 Walloca-larger-than

Description

dtrace: avoid gcc9 Walloca-larger-than

gcc9 grew a new warning for unbounded allocas, such as the one in
dt_options_load. Remove both uses of alloca in dt_options.c.

Reviewed by: markj
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D22880

(cherry picked from commit fa19b250bdb7e463b58a8e7628ebea09a44197f3)

Details

Provenance
rlibbyAuthored on Dec 21 2019, 2:44 AM
jhbCommitted on Mar 22 2023, 2:18 AM
Reviewer
markj
Differential Revision
D22880: dtrace: quiet gcc9 Walloca-larger-than
Parents
rGe0f29006d199: libcrypto padlock.so: Link with -z noexecstack for ld.bfd.
Branches
Unknown
Tags
Unknown