[PATCH] size_t is unsigned long on Bitrig

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Jun 23 06:49:40 PDT 2014


LGTM with a testcase.

On 23 June 2014 08:55, Patrick Wildt <mail at patrick-wildt.de> wrote:
> Hi,
>
> even on AAPCS size_t is unsigned long on Bitrig.
>
> Best regards,
> Patrick
>
> diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp
> index 4fdbc24..3bd2515 100644
> --- a/lib/Basic/Targets.cpp
> +++ b/lib/Basic/Targets.cpp
> @@ -3510,8 +3510,9 @@ class ARMTargetInfo : public TargetInfo {
>      DoubleAlign = LongLongAlign = LongDoubleAlign = SuitableAlign = 64;
>      const llvm::Triple &T = getTriple();
>
> -    // size_t is unsigned long on Darwin and NetBSD.
> -    if (T.isOSDarwin() || T.getOS() == llvm::Triple::NetBSD)
> +    // size_t is unsigned long on Darwin, NetBSD and Bitrig.
> +    if (T.isOSDarwin() || T.getOS() == llvm::Triple::NetBSD ||
> +        T.getOS() == llvm::Triple::Bitrig)
>        SizeType = UnsignedLong;
>      else
>        SizeType = UnsignedInt;
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits



More information about the cfe-commits mailing list