[Driver] do not link _p libs for -pg on FreeBSD 14 and later
authorEd Maste <emaste@FreeBSD.org>
Tue, 22 Jun 2021 14:35:36 +0000 (10:35 -0400)
committerEd Maste <emaste@FreeBSD.org>
Sat, 26 Jun 2021 21:47:54 +0000 (17:47 -0400)
commit699d47472c3f7c5799fe75486689545179cfba03
treecaa1ed53dc9d04ec0cd735cc8ba382cff21821b7
parent41d8149ee972b8498288b5051a6966cc9e89d57c
[Driver] do not link _p libs for -pg on FreeBSD 14 and later

In FreeBSD 14 the project will deprecate the _p special profiling
libraries.

Support for -pg (i.e., mcount) still exists but libraries compiled
with -pg will not be built by default, so stop linking against them.

Reviewed by: Dimitry Andric
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.llvm.org/D104753
clang/lib/Driver/ToolChains/FreeBSD.cpp
clang/test/Driver/freebsd.cpp