HomeFreeBSD

clang: allow -fstack-clash-protection on FreeBSD

Description

clang: allow -fstack-clash-protection on FreeBSD

-fstack-clash-protection was added in Clang commit e67cbac81211 but was
enabled only on Linux. It should work fine on FreeBSD as well, so
enable it.

To be discussed and upstreamed with a test. The OS test should probably
just be removed.

Reviewed by: dim
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D27366

(cherry picked from commit 3063e1e56b509373d143a3a4c67d388bd390f268)

Details

Provenance
emasteAuthored on Nov 25 2020, 2:26 PM
dimCommitted on Dec 22 2021, 10:01 AM
Reviewer
dim
Differential Revision
D27366: clang: allow -fstack-clash-protection on FreeBSD
Parents
rGdfff2e2d5c36: For llvm's internal function which retrieves the number of available
Branches
Unknown
Tags
Unknown