HomeFreeBSD

compilert-rt: build out-of-line LSE atomics helpers for aarch64

Description

compilert-rt: build out-of-line LSE atomics helpers for aarch64

Both clang >= 12 and gcc >= 10.1 now default to -moutline-atomics for
aarch64. This requires a bunch of helper functions in libcompiler_rt.a,
to avoid link errors like "undefined symbol: __aarch64_ldadd8_acq_rel".

(Note: of course you can use -mno-outline-atomics as a workaround too,
but this would negate the potential performance benefit of the faster
LSE instructions.)

Bump __FreeBSD_version so ports maintainers can easily detect this.

PR: 257392
MFC after: 2 weeks

(cherry picked from commit cc55ee8009a550810d38777fd6ace9abf3a2f6b4)

Details

Provenance
dimAuthored on Jul 28 2021, 8:30 PM
Parents
rGb131ebe66504: Merge llvm-project 12.0.1 release
Branches
Unknown
Tags
Unknown