]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
clang: allow -fstack-clash-protection on FreeBSD
authoremaste <emaste@FreeBSD.org>
Wed, 25 Nov 2020 14:26:13 +0000 (14:26 +0000)
committeremaste <emaste@FreeBSD.org>
Wed, 25 Nov 2020 14:26:13 +0000 (14:26 +0000)
commit97f64194f0750f0d11566fca7247c13a1b67a69d
treeb08eb9e984d3115770a4a75292f2b54846773c75
parentcd5f7e5d0a139f7259946a28d5eb3d32a38eb9d6
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
contrib/llvm-project/clang/lib/Driver/ToolChains/Clang.cpp