diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2016-01-12 13:16:53 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2016-01-12 05:16:53 -0800 |
commit | 5cc2af593f43d240161fd98cfbc1a06fc9bb96fa (patch) | |
tree | 7eeddfdd144918a57a835276c99959e842237827 | |
parent | 86cefc49427a40b340021290e6e22e2681b55978 (diff) | |
download | gcc-5cc2af593f43d240161fd98cfbc1a06fc9bb96fa.zip gcc-5cc2af593f43d240161fd98cfbc1a06fc9bb96fa.tar.gz gcc-5cc2af593f43d240161fd98cfbc1a06fc9bb96fa.tar.bz2 |
Define STDINT_LONG32 and add predefined integer types for IAMCU
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.
From-SVN: r232266
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/config/i386/iamcu.h | 16 |
2 files changed, 26 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index afc1b27..c7674e5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/i386/iamcu.h b/gcc/config/i386/iamcu.h index 53afbc0..e16c9d63 100644 --- a/gcc/config/i386/iamcu.h +++ b/gcc/config/i386/iamcu.h @@ -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 |