Skip to content

Commit b471e25

Browse files
committed
[clang] Support __float128 on DragonFlyBSD.
Differential Revision: https://reviews.llvm.org/D111760
1 parent 9635b29 commit b471e25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Basic/Targets/OSTargets.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ class LLVM_LIBRARY_VISIBILITY DragonFlyBSDTargetInfo
179179
Builder.defineMacro("__KPRINTF_ATTRIBUTE__");
180180
Builder.defineMacro("__tune_i386__");
181181
DefineStd(Builder, "unix", Opts);
182+
if (this->HasFloat128)
183+
Builder.defineMacro("__FLOAT128__");
182184
}
183185

184186
public:
@@ -188,6 +190,7 @@ class LLVM_LIBRARY_VISIBILITY DragonFlyBSDTargetInfo
188190
default:
189191
case llvm::Triple::x86:
190192
case llvm::Triple::x86_64:
193+
this->HasFloat128 = true;
191194
this->MCountName = ".mcount";
192195
break;
193196
}

0 commit comments

Comments
 (0)