Make gcc emit the CPP macros for integer types.

This commit is contained in:
matt 2015-03-29 00:42:51 +00:00
parent 1380094dbb
commit 11b22aab18
2 changed files with 107 additions and 2 deletions

View File

@ -75,6 +75,18 @@
#undef WINT_TYPE
#define WINT_TYPE "int"
#undef INT64_TYPE
#define INT64_TYPE "long long int"
#undef UINT64_TYPE
#define UINT64_TYPE "long long unsigned int"
#undef INTMAX_TYPE
#define INTMAX_TYPE "long long int"
#undef UINTMAX_TYPE
#define UINTMAX_TYPE "long long unsigned int"
/* Undo the spec mess from sysv4.h, and just define the specs
the way NetBSD systems actually expect. */

View File

@ -390,14 +390,107 @@ extern int dot_symbols;
/* Make GCC agree with <machine/ansi.h>. */
#undef SIZE_TYPE
#define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "unsigned int")
#define SIZE_TYPE (LONG_TYPE_SIZE == 64 ? "long unsigned int" : "unsigned int")
#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int")
#define PTRDIFF_TYPE (LONG_TYPE_SIZE == 64 ? "long int" : "int")
#undef INTPTR_TYPE
#define INTPTR_TYPE PTRDIFF_TYPE
#undef UINTPTR_TYPE
#define UINTPTR_TYPE SIZE_TYPE
#undef WCHAR_TYPE
#define WCHAR_TYPE "int"
#undef INT8_TYPE
#define INT8_TYPE "signed char"
#undef INT16_TYPE
#define INT16_TYPE "short int"
#undef INT32_TYPE
#define INT32_TYPE "int"
#undef INT64_TYPE
#define INT64_TYPE "long long int"
#undef UINT8_TYPE
#define UINT8_TYPE "unsigned char"
#undef UINT16_TYPE
#define UINT16_TYPE "short unsigned int"
#undef UINT32_TYPE
#define UINT32_TYPE "unsigned int"
#undef UINT64_TYPE
#define UINT64_TYPE "long long unsigned int"
#undef INT_FAST8_TYPE
#define INT_FAST8_TYPE "int"
#undef INT_FAST16_TYPE
#define INT_FAST16_TYPE "int"
#undef INT_FAST32_TYPE
#define INT_FAST32_TYPE "int"
#undef INT_FAST64_TYPE
#define INT_FAST64_TYPE INT64_TYPE
#undef UINT_FAST8_TYPE
#define UINT_FAST8_TYPE "unsigned int"
#undef UINT_FAST16_TYPE
#define UINT_FAST16_TYPE "unsigned int"
#undef UINT_FAST32_TYPE
#define UINT_FAST32_TYPE "unsigned int"
#undef UINT_FAST8_TYPE
#define UINT_FAST8_TYPE "unsigned int"
#undef UINT_FAST16_TYPE
#define UINT_FAST16_TYPE "unsigned int"
#undef UINT_FAST32_TYPE
#define UINT_FAST32_TYPE "unsigned int"
#undef UINT_FAST64_TYPE
#define UINT_FAST64_TYPE UINT64_TYPE
#undef INT_LEAST8_TYPE
#define INT_LEAST8_TYPE "int"
#undef INT_LEAST32_TYPE
#define INT_LEAST32_TYPE "int"
#undef INT_LEAST16_TYPE
#define INT_LEAST16_TYPE "int"
#undef INT_LEAST64_TYPE
#define INT_LEAST64_TYPE INT64_TYPE
#undef UINT_LEAST8_TYPE
#define UINT_LEAST8_TYPE "unsigned int"
#undef UINT_LEAST32_TYPE
#define UINT_LEAST32_TYPE "unsigned int"
#undef UINT_LEAST16_TYPE
#define UINT_LEAST16_TYPE "unsigned int"
#undef UINT_LEAST64_TYPE
#define UINT_LEAST64_TYPE UINT64_TYPE
#undef INTMAX_TYPE
#define INTMAX_TYPE INT64_TYPE
#undef UINTMAX_TYPE
#define UINTMAX_TYPE UINT64_TYPE
/* Override rs6000.h definition. */
#undef ASM_APP_ON
#define ASM_APP_ON "#APP\n"