fix builds on OpenBSD

Jonathan Gray jsg@openbsd.org
Sat Oct 31 16:24:00 GMT 2009


The following diff is required to make gcc svn build on OpenBSD,
as c_common_nodes_and_builtins expects things to be in a certain
order.  Otherwise things segfault building libgcc in stage1.

Gerald Pfeifer has volunteered to apply my patches based
on maintainer approval.

2009-10-31  Jonathan Gray <jsg@openbsd.org>
 
        * config/openbsd-stdint.h: Change to reflect what 
        c_common_nodes_and_builtins expects.

Index: openbsd-stdint.h
===================================================================
--- openbsd-stdint.h	(revision 153775)
+++ openbsd-stdint.h	(working copy)
@@ -5,18 +5,18 @@
 #define INT32_TYPE		"int"
 #define INT64_TYPE		"long long int"
 #define UINT8_TYPE		"unsigned char"
-#define UINT16_TYPE		"unsigned short int"
+#define UINT16_TYPE		"short unsigned int"
 #define UINT32_TYPE		"unsigned int"
-#define UINT64_TYPE		"unsigned long long int"
+#define UINT64_TYPE		"long long unsigned int"
  
 #define INT_LEAST8_TYPE		"signed char"
 #define INT_LEAST16_TYPE	"short int"
 #define INT_LEAST32_TYPE	"int"
 #define INT_LEAST64_TYPE	"long long int"
 #define UINT_LEAST8_TYPE	"unsigned char"
-#define UINT_LEAST16_TYPE	"unsigned short int"
+#define UINT_LEAST16_TYPE	"short unsigned int"
 #define UINT_LEAST32_TYPE	"unsigned int"
-#define UINT_LEAST64_TYPE	"unsigned long long int"
+#define UINT_LEAST64_TYPE	"long long unsigned int"
  
 #define INT_FAST8_TYPE		"int"
 #define INT_FAST16_TYPE		"int"
@@ -25,7 +25,7 @@
 #define UINT_FAST8_TYPE		"unsigned int"
 #define UINT_FAST16_TYPE	"unsigned int"
 #define UINT_FAST32_TYPE	"unsigned int"
-#define UINT_FAST64_TYPE	"unsigned long long int"
+#define UINT_FAST64_TYPE	"long long unsigned int"
  
 #define INTPTR_TYPE		"long int"
-#define UINTPTR_TYPE		"unsigned long int"
+#define UINTPTR_TYPE		"long unsigned int"



More information about the Gcc-patches mailing list