Basic: fix __{,U}INTPTR_TYPE__ on ARM
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 18 Oct 2017 00:00:50 +0000 (00:00 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 18 Oct 2017 00:00:50 +0000 (00:00 +0000)
commit8d799f8ef9817ff1f709be242811c19fa2b42e97
tree6d746fb0fc5957a4a6ecacce82998b34be986c1b
parentc4fcc189d2f7e8bfdab0d8da576ff6ce0adb1d23
Basic: fix __{,U}INTPTR_TYPE__ on ARM

Darwin and OpenBSD are the only platforms which use `long int` for
`__INTPTR_TYPE__`.  The other platforms use `int` in 32-bit, and `long
int` on 64-bit (except for VMS and Windows which are LLP64).  Adjust the
type definitions to match the platform definitions.  We now generate the
same definition as GCC on all the targets.

llvm-svn: 316046
clang/lib/Basic/Targets/ARM.cpp
clang/test/Preprocessor/init.c
clang/test/Preprocessor/stdint.c