Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/rs6000 Make gcc emit the C...



details:   https://anonhg.NetBSD.org/src/rev/8c2f0ddf7d43
branches:  trunk
changeset: 336978:8c2f0ddf7d43
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Mar 29 00:42:51 2015 +0000

description:
Make gcc emit the CPP macros for integer types.

diffstat:

 external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h   |  12 ++
 external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h |  97 ++++++++++++++++++++-
 2 files changed, 107 insertions(+), 2 deletions(-)

diffs (135 lines):

diff -r b16f4af5520f -r 8c2f0ddf7d43 external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h Sun Mar 29 00:38:36 2015 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h Sun Mar 29 00:42:51 2015 +0000
@@ -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.  */
 
diff -r b16f4af5520f -r 8c2f0ddf7d43 external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h
--- a/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h       Sun Mar 29 00:38:36 2015 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h       Sun Mar 29 00:42:51 2015 +0000
@@ -390,14 +390,107 @@
 /* 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"



Home | Main Index | Thread Index | Old Index