]> granicus.if.org Git - clang/commit
The -fshort-wchar option causes wchar_t to become unsigned, in addition to being
authorChris Lattner <sabre@nondot.org>
Sat, 25 Dec 2010 23:25:43 +0000 (23:25 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 25 Dec 2010 23:25:43 +0000 (23:25 +0000)
commit3f59c975aa5d047f7edd1b900b5e885c38af0ef7
tree2fbe959271ee3bfd09aeaf5b035507fc87f13ba2
parentaf6530c938bfc60902f0dfec1c0808aedbee1663
The -fshort-wchar option causes wchar_t to become unsigned, in addition to being
16-bits in size.  Implement this by splitting WChar into two enums, like we have
for char.  This fixes a miscompmilation of XULRunner, PR8856.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122558 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/clang/AST/Type.h
include/clang/Basic/TargetInfo.h
include/clang/Frontend/TypeXML.def
lib/AST/ASTContext.cpp
lib/AST/ASTImporter.cpp
lib/AST/Type.cpp
lib/AST/TypeLoc.cpp
lib/Analysis/PrintfFormatString.cpp
lib/Basic/TargetInfo.cpp
lib/CodeGen/CGRTTI.cpp
lib/CodeGen/CodeGenTypes.cpp
lib/CodeGen/Mangle.cpp
lib/CodeGen/MicrosoftCXXABI.cpp
lib/Serialization/ASTCommon.cpp
test/CodeGen/pascal-wchar-string.c
tools/libclang/CIndex.cpp
tools/libclang/CIndexUSRs.cpp
tools/libclang/CXType.cpp