12345678910111213141516171819202122232425262728293031 |
- From 45ada900078b1a0b8d428766f5f429912e8eb521 Mon Sep 17 00:00:00 2001
- From: Jun Yuan Tan <junyuan.tan@starfivetech.com>
- Date: Tue, 9 Nov 2021 10:09:14 +0800
- Subject: [PATCH 08/34] clang: musl/ppc does not support 128-bit long double
- Rebased to LLVM 14.0.0 by Jun Yuan Tan
- Signed-off-by: Khem Raj <raj.khem@gmail.com>
- Signed-off-by: Jun Yuan Tan <junyuan.tan@starfivetech.com>
- ---
- clang/lib/Basic/Targets/PPC.h | 4 ++++
- 1 file changed, 4 insertions(+)
- diff --git a/clang/lib/Basic/Targets/PPC.h b/clang/lib/Basic/Targets/PPC.h
- index 89034682a90e..43d8828dc0ff 100644
- --- a/clang/lib/Basic/Targets/PPC.h
- +++ b/clang/lib/Basic/Targets/PPC.h
- @@ -394,6 +394,10 @@ public:
- LongDoubleFormat = &llvm::APFloat::IEEEdouble();
- }
-
- + if (getTriple().isMusl()) {
- + LongDoubleWidth = LongDoubleAlign = 64;
- + LongDoubleFormat = &llvm::APFloat::IEEEdouble();
- + }
- // PPC32 supports atomics up to 4 bytes.
- MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 32;
- }
- --
- 2.33.1
|