diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-07-11 17:29:18 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-07-11 17:29:18 +0000 |
commit | 945ace6394fde5451cc5794edc65b0447dc52f19 (patch) | |
tree | 8120130569f483bba394495e9ec472f2da62081c | |
parent | 739e3dfe131606ce260c8dca7be3288998194676 (diff) |
Set the default ABI for OpenBSD to ELFv2 in the clang frontend as well.
This makes sure the compiler defines the _CALL_ELF pre-processor symbol
correctly.
ok mortimer@
-rw-r--r-- | gnu/llvm/tools/clang/lib/Basic/Targets/PPC.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/llvm/tools/clang/lib/Basic/Targets/PPC.h b/gnu/llvm/tools/clang/lib/Basic/Targets/PPC.h index 06a6bbac225..f2b3552c5d3 100644 --- a/gnu/llvm/tools/clang/lib/Basic/Targets/PPC.h +++ b/gnu/llvm/tools/clang/lib/Basic/Targets/PPC.h @@ -372,9 +372,13 @@ public: switch (getTriple().getOS()) { case llvm::Triple::FreeBSD: + LongDoubleWidth = LongDoubleAlign = 64; + LongDoubleFormat = &llvm::APFloat::IEEEdouble(); + break; case llvm::Triple::OpenBSD: LongDoubleWidth = LongDoubleAlign = 64; LongDoubleFormat = &llvm::APFloat::IEEEdouble(); + ABI = "elfv2"; break; default: break; |