alexrp wrote: The compiler-rt change looks fine to me. But I'm struggling to understand why the Clang change is necessary for LoongArch but no other FreeBSD architectures. In any case, please split this into two separate PRs. https://github.com/llvm/llvm-project/pull/249404