From bc7d52403496e1b95f14db90a1794900c09c08d1 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Mon, 2 Dec 2013 16:09:34 +0000 Subject: [PATCH] NetBSD uses long derived size_t / ssize_t in all ARM ABIs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196114 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Targets.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 899b1e6014..b71bc8b063 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -3706,15 +3706,17 @@ public: : TargetInfo(Triple), ABI("aapcs-linux"), CPU("arm1136j-s"), FPMath(FP_Default), IsAAPCS(true) { BigEndian = false; - SizeType = UnsignedInt; - PtrDiffType = SignedInt; switch (getTriple().getOS()) { case llvm::Triple::NetBSD: + SizeType = UnsignedLong; + PtrDiffType = SignedLong; WCharType = SignedInt; break; default: // AAPCS 7.1.1, ARM-Linux ABI 2.4: type of wchar_t is unsigned int. WCharType = UnsignedInt; + SizeType = UnsignedInt; + PtrDiffType = SignedInt; break; } -- 2.40.0