[PATCH] implement -fno-short-wchar option

Richard Barton richard.barton at arm.com
Mon Feb 24 07:55:03 PST 2014


Hello reviewers

The attached patch implements the -fno-short-wchar option for clang.

I have followed the model for -fshort-wchar by only adding it to the cc1
line if it is actually asked for, and leaving the default to sort itself
out.

Testing added to show that it generates the right compiler defines when put
down. This only checks __SIZEOF_WCHAR_T and __WCHAR_T_WIDTH as the other two
are different depending on whether the default is signed or unsigned. There
is also a new test to make sure they turn each other off.

Please review

Thanks
Rich

Richard Barton
Staff Engineer - LLVM
ARM Ltd, Cambridge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LLVM-1231-fno-short-wchar.patch
Type: application/octet-stream
Size: 3881 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140224/c30c3895/attachment.obj>


More information about the cfe-commits mailing list