From edc5efb0c38c751969af4edb3fb5d2e9067654de Mon Sep 17 00:00:00 2001 From: andrew Date: Sun, 23 Dec 2012 21:41:39 +0000 Subject: Pull in r170096 from upstream clang trunk: Initial support for FreeBSD on ARM. --- contrib/llvm/tools/clang/lib/Basic/Targets.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'contrib/llvm/tools/clang/lib/Basic/Targets.cpp') diff --git a/contrib/llvm/tools/clang/lib/Basic/Targets.cpp b/contrib/llvm/tools/clang/lib/Basic/Targets.cpp index f36ef82..84a6daf 100644 --- a/contrib/llvm/tools/clang/lib/Basic/Targets.cpp +++ b/contrib/llvm/tools/clang/lib/Basic/Targets.cpp @@ -3078,7 +3078,9 @@ public: // name. if (Name == "apcs-gnu") { DoubleAlign = LongLongAlign = LongDoubleAlign = SuitableAlign = 32; - SizeType = UnsignedLong; + // size_t is unsigned int on FreeBSD. + if (getTriple().getOS() != llvm::Triple::FreeBSD) + SizeType = UnsignedLong; // Revert to using SignedInt on apcs-gnu to comply with existing behaviour. WCharType = SignedInt; -- cgit v1.1