[clang] allow -fstack-clash-protection on FreeBSD
authorEd Maste <emaste@FreeBSD.org>
Mon, 23 Aug 2021 16:12:43 +0000 (12:12 -0400)
committerEd Maste <emaste@FreeBSD.org>
Wed, 25 Aug 2021 01:02:36 +0000 (21:02 -0400)
commit6609892a2dcdd1a4f6adefe191b55524861f020c
treef76ed3f824c477e0fbd86eaf05e25f2dc15617ea
parent2847b8b6ff3e2cf90faca851399248620ba76370
[clang] allow -fstack-clash-protection on FreeBSD

-fstack-clash-protection was added in Clang commit e67cbac81211 but was
enabled only on Linux.  Allow it on FreeBSD as well, as it works fine.

Reviewed By: serge-sans-paille

Differential Revision: https://reviews.llvm.org/D108571
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/stack-clash-protection.c