[compiler-rt] [builtins] Fix divtc3.c etc. compilation on Solaris/SPARC with gcc (PR #101662)

Zibi Sarbinowski via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 16 06:51:34 PDT 2024


zibi2 wrote:

I would rather deal with this issue now when it's still fresh. Can you provide more details 

I'm confused, If `__compiler_rt_logbtf` depends on `CRT_HAS_TF_MODE` the following guard should work:
`#if defined(CRT_HAS_TF_MODE) || defined(CRT_LDBL_128BIT)`
Do you mean in 32-bit Solaris/sparc with gcc `CRT_HAS_TF_MODE` is not defined but `CRT_LDBL_128BIT` is and therefor the call to `__compiler_rt_logbtf` is unresolved? Is there any other macro we can use to distinguish this case? If you don't mind can you provide -dM -E output for 32-bit Solaris/sparc with gcc and the 64-bit one which I assume works?

https://github.com/llvm/llvm-project/pull/101662


More information about the llvm-commits mailing list