[PATCH] D111760: [clang] Support __float128 on DragonFlyBSD.
Frederic Cambus via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 13 15:14:13 PDT 2021
fcambus created this revision.
fcambus added reviewers: emaste, joerg, mgorny, krytarowski.
fcambus requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111760
Files:
clang/lib/Basic/Targets/OSTargets.h
Index: clang/lib/Basic/Targets/OSTargets.h
===================================================================
--- clang/lib/Basic/Targets/OSTargets.h
+++ clang/lib/Basic/Targets/OSTargets.h
@@ -179,6 +179,8 @@
Builder.defineMacro("__KPRINTF_ATTRIBUTE__");
Builder.defineMacro("__tune_i386__");
DefineStd(Builder, "unix", Opts);
+ if (this->HasFloat128)
+ Builder.defineMacro("__FLOAT128__");
}
public:
@@ -188,6 +190,7 @@
default:
case llvm::Triple::x86:
case llvm::Triple::x86_64:
+ this->HasFloat128 = true;
this->MCountName = ".mcount";
break;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111760.379531.patch
Type: text/x-patch
Size: 618 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211013/ea2dab6c/attachment-0001.bin>
More information about the cfe-commits
mailing list