This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] OpenBSD stdint fix

Is this patch upstream on the OpenBSD side?  How and where have 
you tested it?

I see we do not have a maintainer for OpenBSD, and no other port
seems to do anything like that, but if this really matches what
you have in place, I can commit it for you.


On Tue, 3 Jan 2012, Mark Kettenis wrote:
> These are "long long" on all supported platforms instead of the
> default "long" on 64-bit, "long long" on 32-bit that defaults.h
> assumes.
> 2012-01-03  Mark Kettenis  <>
> 	* config/openbsd-stdint.h (INTMAX_TYPE, UINTMAX_TYPE): New defines.
> Index: gcc/config/openbsd-stdint.h
> ===================================================================
> --- gcc/config/openbsd-stdint.h	(revision 182767)
> +++ gcc/config/openbsd-stdint.h	(working copy)
> @@ -26,6 +26,9 @@
>  #define UINT_FAST16_TYPE	"unsigned int"
>  #define UINT_FAST32_TYPE	"unsigned int"
>  #define UINT_FAST64_TYPE	"long long unsigned int"
> +
> +#define INTMAX_TYPE		"long long int"
> +#define UINTMAX_TYPE		"long long unsigned int"
>  #define INTPTR_TYPE		"long int"
>  #define UINTPTR_TYPE		"long unsigned int"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]