]> granicus.if.org Git - clang/commit
Driver: default to `unsigned int` `wchar_t` for ARM
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 29 Oct 2017 06:01:14 +0000 (06:01 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 29 Oct 2017 06:01:14 +0000 (06:01 +0000)
commit68e041468bfb4a364acdfa32abb0c7e38cfb938e
treea6063597c0074cb705e104ace4af8728e30a51c7
parentb25397ba806743e5d82df01cd72d400a9485493b
Driver: default to `unsigned int` `wchar_t` for ARM

AAPCS and AAPCS64 mandate that `wchar_t` with `-fno-short-wchar` is an
`unsigned int` rather than a `signed int`.  Ensure that the driver does
not flip the signedness of `wchar_t` for those targets.

Add additional tests to ensure that this does not regress.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316858 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Clang.cpp
test/Driver/arm-wchar_t-defaults.c [new file with mode: 0644]