]> granicus.if.org Git - clang/commitdiff
NetBSD uses long derived size_t / ssize_t in all ARM ABIs.
authorJoerg Sonnenberger <joerg@bec.de>
Mon, 2 Dec 2013 16:09:34 +0000 (16:09 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Mon, 2 Dec 2013 16:09:34 +0000 (16:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196114 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 899b1e6014b85d7f7aac62aff1bcee8091838a31..b71bc8b0639a2c77ea803ad08e56eb0570bef235 100644 (file)
@@ -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;
     }