freebsd-src/contrib/llvm-project
Dimitry Andric 3289bace53
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
Reapply "Merge commit e24f90190c77 from llvm git (by Brad Smith):"
[Driver] Enable outline atomics for FreeBSD/aarch64 (#156089)

The compiler_rt helper functions have been built since 12.4, 13.1, 14
and anything newer.

This reverts commit bd27bd1f51.

Only some people (including the release manager, unfortunately) ran into
build issues with the previous iteration of this commit, because they
were bootstrapping the compiler, either via the WITHOUT_SYSTEM_COMPILER
src.conf(5) setting, or because the build system determined that their
base system compiler was out of date.

The bootstrapped compiler would then enable outline atomics and compile
libgcc_s with these, but because libgcc_s is linked with -nodefaultlibs,
it could not find the helper routines in libcompiler_rt.a.

In contrast, people who did not bootstrap the compiler never saw any
issues, because libgcc_s was built using their 'old' base system
compiler, and so libgcc_s would not contain any calls to those helper
routines.

Fix this by ensuring that libgcc_s is linked against libcompiler_rt.a
explicitly, similar to some other binaries and libraries that are built
with -nodefaultlibs.

Also, bump FREEBSD_CC_VERSION to ensure that everybody gets the updated
compiler with outline atomics enabled. (This should have been done in
the first iteration of this commit, because the error would have shown
up right away then.)

MFC after:	3 days
2025-11-23 19:40:00 +01:00
..
clang Reapply "Merge commit e24f90190c77 from llvm git (by Brad Smith):" 2025-11-23 19:40:00 +01:00
compiler-rt Merge llvm-project release/19.x llvmorg-19.1.7-0-gcd708029e0b2 2025-01-16 21:06:51 +01:00
libcxx libc++: silence -Wnontrivial-memaccess warning with newer clang 2025-09-15 15:14:18 -07:00
libunwind Merge llvm-project release/19.x llvmorg-19.1.0-rc4-0-g0c641568515a 2024-10-23 20:27:14 +02:00
lld Merge llvm-project release/19.x llvmorg-19.1.5-0-gab4b5a2db582 2024-12-06 18:29:48 +01:00
lldb lldb: Fix empty register set when trying to get size of register 2025-11-23 12:49:51 -05:00
llvm Merge commit 7a66a26658f4 from llvm git (by Fangrui Song): 2025-08-28 09:07:13 -04:00
openmp Merge llvm-project release/19.x llvmorg-19.1.0-rc3-0-g437434df21d8 2024-10-23 20:27:07 +02:00
FREEBSD-Xlist contrib/llvm-project: re-add clang/tools/clang-scan-deps 2025-06-25 19:21:40 +02:00