r194461 - XCore target Type defines.

Robert Lytton robert at xmos.com
Tue Nov 12 02:09:30 PST 2013


Author: rlytton
Date: Tue Nov 12 04:09:30 2013
New Revision: 194461

URL: http://llvm.org/viewvc/llvm-project?rev=194461&view=rev
Log:
XCore target Type defines.

Change SizeType, PtrDiffType, IntPtrType, WCharType, WIntType
to follow the XMOS llvm-gcc front end's settings.

Modified:
    cfe/trunk/lib/Basic/Targets.cpp
    cfe/trunk/test/Preprocessor/stdint.c

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=194461&r1=194460&r2=194461&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Tue Nov 12 04:09:30 2013
@@ -5445,6 +5445,11 @@ public:
     LongLongAlign = 32;
     SuitableAlign = 32;
     DoubleAlign = LongDoubleAlign = 32;
+    SizeType = UnsignedInt;
+    PtrDiffType = SignedInt;
+    IntPtrType = SignedInt;
+    WCharType = UnsignedChar;
+    WIntType = UnsignedInt;
     UseZeroLengthBitfieldAlignment = true;
     DescriptionString = "e-p:32:32:32-a0:0:32-n32"
                         "-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32"

Modified: cfe/trunk/test/Preprocessor/stdint.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/stdint.c?rev=194461&r1=194460&r2=194461&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/stdint.c (original)
+++ cfe/trunk/test/Preprocessor/stdint.c Tue Nov 12 04:09:30 2013
@@ -1052,11 +1052,11 @@
 //
 // XCORE:SIG_ATOMIC_MIN_ (-2147483647 -1)
 // XCORE:SIG_ATOMIC_MAX_ 2147483647
-// XCORE:WINT_MIN_ (-2147483647 -1)
-// XCORE:WINT_MAX_ 2147483647
+// XCORE:WINT_MIN_ 0U
+// XCORE:WINT_MAX_ 4294967295U
 //
-// XCORE:WCHAR_MAX_ 2147483647
-// XCORE:WCHAR_MIN_ (-2147483647 -1)
+// XCORE:WCHAR_MAX_ 255U
+// XCORE:WCHAR_MIN_ 0
 //
 // XCORE:INT8_C_(0) 0
 // XCORE:UINT8_C_(0) 0U





More information about the cfe-commits mailing list