[PATCH] Define wordsize.h macros everywhere
Steve Ellcey
sellcey@caviumnetworks.com
Thu Nov 10 15:43:00 GMT 2016
On Thu, 2016-11-10 at 14:28 +0000, Joseph Myers wrote:
> I see errors in tilepro-linux-gnu builds with this patch:
>
> ../sysdeps/generic/stdint.h:252:7: error: "__WORDSIZE32_PTRDIFF_LONG"
> is not defined [-Werror=undef]
> Â #Â Â if __WORDSIZE32_PTRDIFF_LONG
> Â Â Â Â Â Â Â ^~~~~~~~~~~~~~~~~~~~~~~~~
> ../sysdeps/generic/stdint.h:269:7: error: "__WORDSIZE32_SIZE_ULONG"
> is not defined [-Werror=undef]
> Â #Â Â if __WORDSIZE32_SIZE_ULONG
> Â Â Â Â Â Â Â ^~~~~~~~~~~~~~~~~~~~~~~
>
Sorry about that, I am not sure how those were missed. Â I will check in
this patch as the obvious fix.
Steve Ellcey
sellcey@caviumnetworks.com
2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
* sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
and __WORDSIZE32_PTRDIFF_LONG.
diff --git a/sysdeps/tile/tilepro/bits/wordsize.h b/sysdeps/tile/tilepro/bits/wo
rdsize.h
index 8281538..d2c4a35 100644
--- a/sysdeps/tile/tilepro/bits/wordsize.h
+++ b/sysdeps/tile/tilepro/bits/wordsize.h
@@ -2,3 +2,5 @@
Â
 #define __WORDSIZE 32
 #define __WORDSIZE_TIME64_COMPAT32 0
+#define __WORDSIZE32_SIZE_ULONG 0
+#define __WORDSIZE32_PTRDIFF_LONG 0
More information about the Libc-alpha
mailing list