[all-commits] [llvm/llvm-project] ad7611: [builtins] Fix floattitf.c etc. compilation on Sol...
Rainer Orth via All-commits
all-commits at lists.llvm.org
Tue Oct 24 10:14:47 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ad7611dafe577720e8b307da94acfb4c38bad2d8
https://github.com/llvm/llvm-project/commit/ad7611dafe577720e8b307da94acfb4c38bad2d8
Author: Rainer Orth <ro at gcc.gnu.org>
Date: 2023-10-24 (Tue, 24 Oct 2023)
Changed paths:
M compiler-rt/lib/builtins/floattitf.c
M compiler-rt/lib/builtins/floatuntitf.c
Log Message:
-----------
[builtins] Fix floattitf.c etc. compilation on Solaris/SPARC (#70058)
69660ccf2ae402b02799efed072afd8ecf5a6eb0 broke the [Solaris/sparcv9
buildbot](https://lab.llvm.org/staging/#/builders/12/builds/264):
`compiler-rt/lib/builtins/int_to_fp.h` unconditionally uses `*int128_t`
which don't exist on 32-bit SPARC.
As suggested in https://github.com/llvm/llvm-project/pull/67540, this
patch fixes this by moving the `CRT_HAS_TF_MODE` guard up which does the
necessary checks.
Tested on `sparcv9-sun-solaris2.11`.
More information about the All-commits
mailing list