[PATCH] D16626: [x86] Correct setting of WIntType for MCU target
Andrey Bokhanko via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 27 05:54:55 PST 2016
andreybokhanko created this revision.
andreybokhanko added reviewers: rnk, mkuper, rafael.
andreybokhanko added a subscriber: cfe-commits.
Correct setting of WIntType for MCU target
http://reviews.llvm.org/D16626
Files:
lib/Basic/Targets.cpp
test/Preprocessor/elfiamcu-predefines.c
Index: lib/Basic/Targets.cpp
===================================================================
--- lib/Basic/Targets.cpp
+++ lib/Basic/Targets.cpp
@@ -3885,6 +3885,7 @@
LongDoubleWidth = 64;
LongDoubleFormat = &llvm::APFloat::IEEEdouble;
UserLabelPrefix = "";
+ WIntType = UnsignedInt;
}
CallingConvCheckResult checkCallingConvention(CallingConv CC) const override {
Index: test/Preprocessor/elfiamcu-predefines.c
===================================================================
--- test/Preprocessor/elfiamcu-predefines.c
+++ test/Preprocessor/elfiamcu-predefines.c
@@ -1,6 +1,7 @@
// RUN: %clang_cc1 -E -dM -triple i586-intel-elfiamcu | FileCheck %s
// CHECK: #define __USER_LABEL_PREFIX__ {{$}}
+// CHECK: #define __WINT_TYPE__ unsigned int
// CHECK: #define __iamcu
// CHECK: #define __iamcu__
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16626.46125.patch
Type: text/x-patch
Size: 837 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160127/8131f4dd/attachment.bin>
More information about the cfe-commits
mailing list