HomeFreeBSD

[libcxx] Fix atomic type for mips32 on gcc to work w/out needing libatomic

Description

[libcxx] Fix atomic type for mips32 on gcc to work w/out needing libatomic

When compiling this for mips32 on gcc-6.x, we'd hit issues where we
don't have 64 bit atomics on mips32.

gcc implements this using libatomic, which we don't currently include
in our freebsd-gcc compiler packages.

So for now add this work around so mips32 works. It's also fine for
mips64. We can fix this later once we get libatomic included.

Approved by: dim
Differential Revision: https://reviews.freebsd.org/D26774

(cherry picked from commit d061adc48d54ebb91b1709b16c59e8ceca895be2)

Details

Provenance
adrianAuthored on Oct 18 2020, 5:31 PM
dimCommitted on Dec 22 2021, 10:01 AM
Differential Revision
D26774: [llvm] Use 32 bit atomic on freebsd mips
Parents
rG3edc59def1c1: Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
Branches
Unknown
Tags
Unknown