Module Name:    src
Committed By:   matt
Date:           Sun Mar 29 00:42:51 UTC 2015

Modified Files:
        src/external/gpl3/gcc/dist/gcc/config/rs6000: netbsd.h netbsd64.h

Log Message:
Make gcc emit the CPP macros for integer types.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 \
    src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h
cvs rdiff -u -r1.10 -r1.11 \
    src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h
diff -u src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h:1.8 src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h:1.9
--- src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h:1.8	Thu Jan 22 08:35:05 2015
+++ src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h	Sun Mar 29 00:42:51 2015
@@ -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.  */
 

Index: src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h
diff -u src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.10 src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.11
--- src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.10	Tue Aug 26 15:53:04 2014
+++ src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h	Sun Mar 29 00:42:51 2015
@@ -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"

Reply via email to