diff options
author | James Molloy <james.molloy@arm.com> | 2011-11-23 13:35:08 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2011-11-23 13:35:08 +0000 |
commit | a6d81f9a2d236ae21491455f649ea765123f6fc7 (patch) | |
tree | eb79818935d00b5c83fac85162a6f18390e6a2d4 /test/Preprocessor | |
parent | 1a3246ad0a4d65dbfe2c70f0431082b2296ee48f (diff) |
AAPCS compliance - 32-bit wchar_t should be unsigned for both aapcs and aapcs-linux.
Original behaviour of defining wchar_t as signed int has been kept for apcs-gnu as I don't have any spec for this to validate against.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor')
-rw-r--r-- | test/Preprocessor/init.c | 4 | ||||
-rw-r--r-- | test/Preprocessor/stdint.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/Preprocessor/init.c b/test/Preprocessor/init.c index 24ebeb6ac7..ec90d6a3bb 100644 --- a/test/Preprocessor/init.c +++ b/test/Preprocessor/init.c @@ -212,8 +212,8 @@ // ARM:#define __THUMB_INTERWORK__ 1 // ARM:#define __UINTMAX_TYPE__ long long unsigned int // ARM:#define __USER_LABEL_PREFIX__ _ -// ARM:#define __WCHAR_MAX__ 2147483647 -// ARM:#define __WCHAR_TYPE__ int +// ARM:#define __WCHAR_MAX__ 4294967295U +// ARM:#define __WCHAR_TYPE__ unsigned int // ARM:#define __WCHAR_WIDTH__ 32 // ARM:#define __WINT_TYPE__ int // ARM:#define __WINT_WIDTH__ 32 diff --git a/test/Preprocessor/stdint.c b/test/Preprocessor/stdint.c index fc88688b52..70c106bf79 100644 --- a/test/Preprocessor/stdint.c +++ b/test/Preprocessor/stdint.c @@ -90,8 +90,8 @@ // ARM:WINT_MIN_ (-2147483647 -1) // ARM:WINT_MAX_ 2147483647 // -// ARM:WCHAR_MAX_ 2147483647 -// ARM:WCHAR_MIN_ (-2147483647 -1) +// ARM:WCHAR_MAX_ 4294967295U +// ARM:WCHAR_MIN_ 0U // // ARM:INT8_C_(0) 0 // ARM:UINT8_C_(0) 0U |