diff options
Diffstat (limited to 'bsp/meta-synopsys/recipes-devtools/gcc/gcc-arc/0037-sync-gcc-stddef.h-with-musl.patch')
-rw-r--r-- | bsp/meta-synopsys/recipes-devtools/gcc/gcc-arc/0037-sync-gcc-stddef.h-with-musl.patch | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/bsp/meta-synopsys/recipes-devtools/gcc/gcc-arc/0037-sync-gcc-stddef.h-with-musl.patch b/bsp/meta-synopsys/recipes-devtools/gcc/gcc-arc/0037-sync-gcc-stddef.h-with-musl.patch index f8a7f41a..b99ac429 100644 --- a/bsp/meta-synopsys/recipes-devtools/gcc/gcc-arc/0037-sync-gcc-stddef.h-with-musl.patch +++ b/bsp/meta-synopsys/recipes-devtools/gcc/gcc-arc/0037-sync-gcc-stddef.h-with-musl.patch @@ -1,23 +1,23 @@ -From 602abaab15ffb60bf1797187a71b485042c56360 Mon Sep 17 00:00:00 2001 +From 39e2f61d262f9f6c7a91068998dea80791ef665e Mon Sep 17 00:00:00 2001 From: Khem Raj <raj.khem@gmail.com> Date: Fri, 3 Feb 2017 12:56:00 -0800 -Subject: [PATCH 37/39] sync gcc stddef.h with musl +Subject: [PATCH 33/36] sync gcc stddef.h with musl musl defines ptrdiff_t size_t and wchar_t so dont define them here if musl is definining them -Signed-off-by: Khem Raj <raj.khem@gmail.com> ---- Upstream-Status: Pending +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- gcc/ginclude/stddef.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gcc/ginclude/stddef.h b/gcc/ginclude/stddef.h -index 31b96a7e5e1..438a3ce7c56 100644 +index da692e1c01a..9a00c261adb 100644 --- a/gcc/ginclude/stddef.h +++ b/gcc/ginclude/stddef.h -@@ -134,6 +134,7 @@ _TYPE_wchar_t; +@@ -128,6 +128,7 @@ _TYPE_wchar_t; #ifndef ___int_ptrdiff_t_h #ifndef _GCC_PTRDIFF_T #ifndef _PTRDIFF_T_DECLARED /* DragonFly */ @@ -25,7 +25,7 @@ index 31b96a7e5e1..438a3ce7c56 100644 #define _PTRDIFF_T #define _T_PTRDIFF_ #define _T_PTRDIFF -@@ -143,10 +144,12 @@ _TYPE_wchar_t; +@@ -137,10 +138,12 @@ _TYPE_wchar_t; #define ___int_ptrdiff_t_h #define _GCC_PTRDIFF_T #define _PTRDIFF_T_DECLARED @@ -38,7 +38,7 @@ index 31b96a7e5e1..438a3ce7c56 100644 #endif /* _PTRDIFF_T_DECLARED */ #endif /* _GCC_PTRDIFF_T */ #endif /* ___int_ptrdiff_t_h */ -@@ -184,6 +187,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; +@@ -178,6 +181,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; #ifndef _GCC_SIZE_T #ifndef _SIZET_ #ifndef __size_t @@ -46,15 +46,15 @@ index 31b96a7e5e1..438a3ce7c56 100644 #define __size_t__ /* BeOS */ #define __SIZE_T__ /* Cray Unicos/Mk */ #define _SIZE_T -@@ -200,6 +204,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; +@@ -194,6 +198,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; #define ___int_size_t_h #define _GCC_SIZE_T #define _SIZET_ +#define __DEFINED_size_t /* musl */ - #if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) \ + #if defined (__FreeBSD__) \ || defined(__DragonFly__) \ - || defined(__FreeBSD_kernel__) -@@ -235,6 +240,7 @@ typedef long ssize_t; + || defined(__FreeBSD_kernel__) \ +@@ -228,6 +233,7 @@ typedef long ssize_t; #endif /* _SIZE_T */ #endif /* __SIZE_T__ */ #endif /* __size_t__ */ @@ -62,7 +62,7 @@ index 31b96a7e5e1..438a3ce7c56 100644 #undef __need_size_t #endif /* _STDDEF_H or __need_size_t. */ -@@ -264,6 +270,7 @@ typedef long ssize_t; +@@ -257,6 +263,7 @@ typedef long ssize_t; #ifndef ___int_wchar_t_h #ifndef __INT_WCHAR_T_H #ifndef _GCC_WCHAR_T @@ -70,7 +70,7 @@ index 31b96a7e5e1..438a3ce7c56 100644 #define __wchar_t__ /* BeOS */ #define __WCHAR_T__ /* Cray Unicos/Mk */ #define _WCHAR_T -@@ -279,6 +286,7 @@ typedef long ssize_t; +@@ -272,6 +279,7 @@ typedef long ssize_t; #define __INT_WCHAR_T_H #define _GCC_WCHAR_T #define _WCHAR_T_DECLARED @@ -78,7 +78,7 @@ index 31b96a7e5e1..438a3ce7c56 100644 /* On BSD/386 1.1, at least, machine/ansi.h defines _BSD_WCHAR_T_ instead of _WCHAR_T_, and _BSD_RUNE_T_ (which, unlike the other -@@ -344,6 +352,7 @@ typedef __WCHAR_TYPE__ wchar_t; +@@ -337,6 +345,7 @@ typedef __WCHAR_TYPE__ wchar_t; #endif #endif /* __WCHAR_T__ */ #endif /* __wchar_t__ */ @@ -87,5 +87,5 @@ index 31b96a7e5e1..438a3ce7c56 100644 #endif /* _STDDEF_H or __need_wchar_t. */ -- -2.17.0 +2.22.1 |