diff options
author | Rainer Orth <ro@gcc.gnu.org> | 2023-09-15 07:31:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-15 07:31:59 +0200 |
commit | 715fc4fc6065ef06e3312d33c26412313df7b29a (patch) | |
tree | f722e351f8ca8d87910b4158e8182c7a45a81f9e /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp | |
parent | 111bc6f1fe6536ac091d4490c112ce7242e00349 (diff) | |
download | llvm-715fc4fc6065ef06e3312d33c26412313df7b29a.zip llvm-715fc4fc6065ef06e3312d33c26412313df7b29a.tar.gz llvm-715fc4fc6065ef06e3312d33c26412313df7b29a.tar.bz2 |
[Sparc] Don't emit __multi3 on 32-bit SPARC (#66362)
LLVM fails to build on 32-bit Solaris/SPARC: several programs fail to
link due to undefined references to `__multi3`. This reference is from
`lib/libLLVMScalarOpts.a(LoopStrengthReduce.cpp.o)`. However, This
function exists neither in the 32-bit `libgcc.a` nor in
`libclang_rt.builtins-sparc.a`. It's only defined in their 64-bit
counterparts.
The same issue affects several 32-bit targets, e.g. 32-bit PowerPC as
described in Issue #54460. The fix is the same: inhibit the libcall for
32-bit compilations. This patch does just that, regenerating the
affected testcases. It allows the build to complete.
Tested on `sparc-sun-solaris2.11`.
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions