]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Define STDINT_LONG32 and add predefined integer types for IAMCU
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Jan 2016 13:16:53 +0000 (13:16 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Jan 2016 13:16:53 +0000 (13:16 +0000)
Define STDINT_LONG32 to 0, add SIZE_TYPE, PTRDIFF_TYPE and WCHAR_TYPE
for IAMCU to make integer types compatible with i386 Linux.

PR target/68456
PR target/69226
* config/i386/iamcu.h (SIZE_TYPE): New macro.
(PTRDIFF_TYPE): Likewise.
(WCHAR_TYPE): Likewise.
(WCHAR_TYPE_SIZE): Likewise.
(STDINT_LONG32): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232266 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/iamcu.h

index afc1b277cc9494dc5f8719309384f1c4f5afe7ef..c7674e598108391debbabbe6e26dba610c169b9a 100644 (file)
@@ -1,3 +1,13 @@
+2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/68456
+       PR target/69226
+       * config/i386/iamcu.h (SIZE_TYPE): New macro.
+       (PTRDIFF_TYPE): Likewise.
+       (WCHAR_TYPE): Likewise.
+       (WCHAR_TYPE_SIZE): Likewise.
+       (STDINT_LONG32): Likewise.
+
 2016-01-12  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/69053
index 53afbc0f36cad850612197514898b9bc8031daca..e16c9d63a7cd162b38bbba10d78d9df22f63bb64 100644 (file)
@@ -94,3 +94,19 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
         goto DONE;                                                     \
       }                                                                        \
   } while (0)
+
+#undef SIZE_TYPE
+#define SIZE_TYPE "unsigned int"
+
+#undef PTRDIFF_TYPE
+#define PTRDIFF_TYPE "int"
+
+#undef WCHAR_TYPE
+#define WCHAR_TYPE "long int"
+
+#undef WCHAR_TYPE_SIZE
+#define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+/* Use int, instead of long int, for int32_t and uint32_t.  */
+#undef STDINT_LONG32
+#define STDINT_LONG32 0