From: Roman Divacky Date: Tue, 13 Mar 2012 16:53:54 +0000 (+0000) Subject: Long double is just double on FreeBSD/{PPC,PPC64}. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3d175da72f9c29ae18ff8aae53b992402895b63;p=clang Long double is just double on FreeBSD/{PPC,PPC64}. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152632 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 8620b9860c..85dfd78570 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -871,6 +871,9 @@ public: default: break; } + + if (getTriple().getOS() == llvm::Triple::FreeBSD) + LongDoubleFormat = &llvm::APFloat::IEEEdouble; } virtual const char *getVAListDeclaration() const { @@ -896,6 +899,9 @@ public: Int64Type = SignedLong; DescriptionString = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-" "i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"; + + if (getTriple().getOS() == llvm::Triple::FreeBSD) + LongDoubleFormat = &llvm::APFloat::IEEEdouble; } virtual const char *getVAListDeclaration() const { return "typedef char* __builtin_va_list;";