[all-commits] [llvm/llvm-project] 5d0e26: [compiler-rt] Make sure __clzdi2 doesn't call itse...

Koakuma via All-commits all-commits at lists.llvm.org
Mon Apr 28 17:36:54 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d0e26e571c08dc4c0b2a25ed6c9f845f054fa76
      https://github.com/llvm/llvm-project/commit/5d0e26e571c08dc4c0b2a25ed6c9f845f054fa76
  Author: Koakuma <koachan at protonmail.com>
  Date:   2025-04-29 (Tue, 29 Apr 2025)

  Changed paths:
    M compiler-rt/lib/builtins/clzdi2.c

  Log Message:
  -----------
  [compiler-rt] Make sure __clzdi2 doesn't call itself recursively on sparc64 (#136737)

On 64-bit platforms, libgcc doesn't ship with __clzsi2, so __builtin_clz
gets lowered to __clzdi2. A check already exists for GCC, but as of
commit 8210ca019839fc5430b3a95d7caf5c829df3232a clang also lowers
__builtin_clz to __clzdi2 on sparc64.

Update the check so that building __clzdi2 with clang/sparc64 also
works.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list