Define wordsize.h macros everywhere

Message ID 1478792562.4630.74.camel@caviumnetworks.com
State New, archived
Headers

Commit Message

Steve Ellcey Nov. 10, 2016, 3:42 p.m. UTC
  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.
  

Patch

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