[clang] [compiler-rt] [llvm] [SPARC] Properly handle CC for long double on sparc32 (PR #162226)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 25 18:58:36 PST 2025
================
@@ -1009,9 +1009,9 @@ else ()
list(APPEND BUILTIN_CFLAGS_${arch} -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET)
endif()
- # For RISCV32, we must force enable int128 for compiling long
+ # For RISCV32 and 32-bit SPARC, we must force enable int128 for compiling long
# double routines.
- if(COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch}" STREQUAL "riscv32")
+ if(COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch}" STREQUAL "riscv32" OR ("${arch}" STREQUAL "sparc" AND NOT CMAKE_COMPILER_IS_GNUCC))
----------------
s-barannikov wrote:
Sorry for going back and forth, I suppose `-fforce-enable-in128` isn't supported by riscv-gcc either, so it should be the same as in the file below.
---
When compiled with gcc, how is the library supposed to link if int128 routines are not compiled in?
https://github.com/llvm/llvm-project/pull/162226
More information about the llvm-commits
mailing list