freebsd-skq/contrib/llvm-project
Dimitry Andric 46c8c5540f Add atomic and bswap functions to libcompiler_rt
There have been several mentions on our mailing lists about missing
atomic functions in our system libraries (e.g. __atomic_load_8 and
friends), and recently I saw __bswapdi2 and __bswapsi2 mentioned too.

To address this, add implementations for the functions from compiler-rt
to the system compiler support libraries, e.g. libcompiler_rt.a and and
libgcc_s.so.

This also needs a small fixup in compiler-rt's atomic.c, to ensure that
32-bit mips can build correctly.

Bump __FreeBSD_version to make it easier for port maintainers to detect
when these functions were added.

MFC after:	2 weeks
Differential Revision: https://reviews.freebsd.org/D26159
2020-08-25 06:49:10 +00:00
..
clang Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 2020-08-24 17:43:23 +00:00
compiler-rt Add atomic and bswap functions to libcompiler_rt 2020-08-25 06:49:10 +00:00
libcxx Reapply r343111 (partially, by mckusick): 2020-08-06 16:25:56 +00:00
libunwind Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 2020-08-24 17:43:23 +00:00
lld Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 2020-08-24 17:43:23 +00:00
lldb Merge commit 1ce07cd614be from llvm git (by me): 2020-08-22 10:55:55 +00:00
llvm Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 2020-08-24 17:43:23 +00:00
openmp Merge commit cde8f4c16 from llvm git (by me): 2020-08-24 20:37:18 +00:00
FREEBSD-Xlist Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 2020-07-31 21:22:58 +00:00