diff options
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc-0.9.33/remove_attribute_optimize_Os.patch')
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-0.9.33/remove_attribute_optimize_Os.patch | 179 |
1 files changed, 179 insertions, 0 deletions
diff --git a/meta/recipes-core/uclibc/uclibc-0.9.33/remove_attribute_optimize_Os.patch b/meta/recipes-core/uclibc/uclibc-0.9.33/remove_attribute_optimize_Os.patch new file mode 100644 index 0000000000..bee251c335 --- /dev/null +++ b/meta/recipes-core/uclibc/uclibc-0.9.33/remove_attribute_optimize_Os.patch | |||
@@ -0,0 +1,179 @@ | |||
1 | Dont support localised optimizations this helps to have a global -O level | ||
2 | |||
3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
4 | Upstream-Status: Pending | ||
5 | |||
6 | Index: git/libpthread/nptl/pthread_mutex_timedlock.c | ||
7 | =================================================================== | ||
8 | --- git.orig/libpthread/nptl/pthread_mutex_timedlock.c | ||
9 | +++ git/libpthread/nptl/pthread_mutex_timedlock.c | ||
10 | @@ -29,7 +29,9 @@ | ||
11 | * error: can't find a register in class ‘GENERAL_REGS’ while reloading ‘asm’ | ||
12 | */ | ||
13 | int | ||
14 | +#ifndef __OPTIMIZE__ | ||
15 | attribute_optimize("Os") | ||
16 | +#endif | ||
17 | pthread_mutex_timedlock ( | ||
18 | pthread_mutex_t *mutex, | ||
19 | const struct timespec *abstime) | ||
20 | Index: git/libc/sysdeps/linux/powerpc/bits/mathinline.h | ||
21 | =================================================================== | ||
22 | --- git.orig/libc/sysdeps/linux/powerpc/bits/mathinline.h | ||
23 | +++ git/libc/sysdeps/linux/powerpc/bits/mathinline.h | ||
24 | @@ -27,7 +27,7 @@ | ||
25 | #ifdef __cplusplus | ||
26 | # define __MATH_INLINE __inline | ||
27 | #else | ||
28 | -# define __MATH_INLINE extern __inline | ||
29 | +# define __MATH_INLINE __extern_inline | ||
30 | #endif /* __cplusplus */ | ||
31 | |||
32 | #if defined __GNUC__ && !defined _SOFT_FLOAT | ||
33 | Index: git/libc/sysdeps/linux/alpha/bits/mathinline.h | ||
34 | =================================================================== | ||
35 | --- git.orig/libc/sysdeps/linux/alpha/bits/mathinline.h | ||
36 | +++ git/libc/sysdeps/linux/alpha/bits/mathinline.h | ||
37 | @@ -25,7 +25,7 @@ | ||
38 | #ifdef __cplusplus | ||
39 | # define __MATH_INLINE __inline | ||
40 | #else | ||
41 | -# define __MATH_INLINE extern __inline | ||
42 | +# define __MATH_INLINE __extern_inline | ||
43 | #endif | ||
44 | |||
45 | #if defined __USE_ISOC99 && defined __GNUC__ && !__GNUC_PREREQ(3,0) | ||
46 | Index: git/libc/sysdeps/linux/common/bits/socket.h | ||
47 | =================================================================== | ||
48 | --- git.orig/libc/sysdeps/linux/common/bits/socket.h | ||
49 | +++ git/libc/sysdeps/linux/common/bits/socket.h | ||
50 | @@ -302,7 +302,7 @@ extern struct cmsghdr *__cmsg_nxthdr (st | ||
51 | libc_hidden_proto(__cmsg_nxthdr) | ||
52 | #ifdef __USE_EXTERN_INLINES | ||
53 | # ifndef _EXTERN_INLINE | ||
54 | -# define _EXTERN_INLINE extern __inline | ||
55 | +# define _EXTERN_INLINE __extern_inline | ||
56 | # endif | ||
57 | _EXTERN_INLINE struct cmsghdr * | ||
58 | __NTH (__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg)) | ||
59 | Index: git/libc/sysdeps/linux/i386/bits/mathinline.h | ||
60 | =================================================================== | ||
61 | --- git.orig/libc/sysdeps/linux/i386/bits/mathinline.h | ||
62 | +++ git/libc/sysdeps/linux/i386/bits/mathinline.h | ||
63 | @@ -26,7 +26,7 @@ | ||
64 | #ifdef __cplusplus | ||
65 | # define __MATH_INLINE __inline | ||
66 | #else | ||
67 | -# define __MATH_INLINE extern __inline | ||
68 | +# define __MATH_INLINE __extern_inline | ||
69 | #endif | ||
70 | |||
71 | |||
72 | Index: git/libc/sysdeps/linux/ia64/bits/mathinline.h | ||
73 | =================================================================== | ||
74 | --- git.orig/libc/sysdeps/linux/ia64/bits/mathinline.h | ||
75 | +++ git/libc/sysdeps/linux/ia64/bits/mathinline.h | ||
76 | @@ -24,7 +24,7 @@ | ||
77 | #ifdef __cplusplus | ||
78 | # define __MATH_INLINE __inline | ||
79 | #else | ||
80 | -# define __MATH_INLINE extern __inline | ||
81 | +# define __MATH_INLINE __extern_inline | ||
82 | #endif | ||
83 | |||
84 | #if defined __USE_ISOC99 && defined __GNUC__ && __GNUC__ >= 2 | ||
85 | Index: git/libc/sysdeps/linux/m68k/bits/mathinline.h | ||
86 | =================================================================== | ||
87 | --- git.orig/libc/sysdeps/linux/m68k/bits/mathinline.h | ||
88 | +++ git/libc/sysdeps/linux/m68k/bits/mathinline.h | ||
89 | @@ -92,7 +92,7 @@ | ||
90 | # ifdef __cplusplus | ||
91 | # define __m81_inline __inline | ||
92 | # else | ||
93 | -# define __m81_inline extern __inline | ||
94 | +# define __m81_inline __extern_inline | ||
95 | # endif | ||
96 | # define __M81_MATH_INLINES 1 | ||
97 | #endif | ||
98 | @@ -351,14 +351,14 @@ __inline_functions (long double,l) | ||
99 | /* Note that there must be no whitespace before the argument passed for | ||
100 | NAME, to make token pasting work correctly with -traditional. */ | ||
101 | # define __inline_forward_c(rettype, name, args1, args2) \ | ||
102 | -extern __inline rettype __attribute__((__const__)) \ | ||
103 | +__extern_inline rettype __attribute__((__const__)) \ | ||
104 | name args1 \ | ||
105 | { \ | ||
106 | return __CONCAT(__,name) args2; \ | ||
107 | } | ||
108 | |||
109 | # define __inline_forward(rettype, name, args1, args2) \ | ||
110 | -extern __inline rettype name args1 \ | ||
111 | +__extern_inline rettype name args1 \ | ||
112 | { \ | ||
113 | return __CONCAT(__,name) args2; \ | ||
114 | } | ||
115 | Index: git/libc/sysdeps/linux/mips/bits/socket.h | ||
116 | =================================================================== | ||
117 | --- git.orig/libc/sysdeps/linux/mips/bits/socket.h | ||
118 | +++ git/libc/sysdeps/linux/mips/bits/socket.h | ||
119 | @@ -307,7 +307,7 @@ extern struct cmsghdr *__cmsg_nxthdr (st | ||
120 | libc_hidden_proto(__cmsg_nxthdr) | ||
121 | #ifdef __USE_EXTERN_INLINES | ||
122 | # ifndef _EXTERN_INLINE | ||
123 | -# define _EXTERN_INLINE extern __inline | ||
124 | +# define _EXTERN_INLINE __extern_inline | ||
125 | # endif | ||
126 | _EXTERN_INLINE struct cmsghdr * | ||
127 | __NTH (__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg)) | ||
128 | Index: git/libc/sysdeps/linux/mips/sys/tas.h | ||
129 | =================================================================== | ||
130 | --- git.orig/libc/sysdeps/linux/mips/sys/tas.h | ||
131 | +++ git/libc/sysdeps/linux/mips/sys/tas.h | ||
132 | @@ -30,7 +30,7 @@ extern int _test_and_set (int *p, int v) | ||
133 | #ifdef __USE_EXTERN_INLINES | ||
134 | |||
135 | # ifndef _EXTERN_INLINE | ||
136 | -# define _EXTERN_INLINE extern __inline | ||
137 | +# define _EXTERN_INLINE __extern_inline | ||
138 | # endif | ||
139 | |||
140 | _EXTERN_INLINE int | ||
141 | Index: git/libc/sysdeps/linux/sparc/bits/mathinline.h | ||
142 | =================================================================== | ||
143 | --- git.orig/libc/sysdeps/linux/sparc/bits/mathinline.h | ||
144 | +++ git/libc/sysdeps/linux/sparc/bits/mathinline.h | ||
145 | @@ -131,7 +131,7 @@ | ||
146 | # ifdef __cplusplus | ||
147 | # define __MATH_INLINE __inline | ||
148 | # else | ||
149 | -# define __MATH_INLINE extern __inline | ||
150 | +# define __MATH_INLINE __extern_inline | ||
151 | # endif /* __cplusplus */ | ||
152 | |||
153 | /* The gcc, version 2.7 or below, has problems with all this inlining | ||
154 | Index: git/libc/sysdeps/linux/sparc/bits/socket.h | ||
155 | =================================================================== | ||
156 | --- git.orig/libc/sysdeps/linux/sparc/bits/socket.h | ||
157 | +++ git/libc/sysdeps/linux/sparc/bits/socket.h | ||
158 | @@ -292,7 +292,7 @@ extern struct cmsghdr *__cmsg_nxthdr (st | ||
159 | libc_hidden_proto(__cmsg_nxthdr) | ||
160 | #ifdef __USE_EXTERN_INLINES | ||
161 | # ifndef _EXTERN_INLINE | ||
162 | -# define _EXTERN_INLINE extern __inline | ||
163 | +# define _EXTERN_INLINE __extern_inline | ||
164 | # endif | ||
165 | _EXTERN_INLINE struct cmsghdr * | ||
166 | __NTH (__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg)) | ||
167 | Index: git/libc/sysdeps/linux/x86_64/bits/mathinline.h | ||
168 | =================================================================== | ||
169 | --- git.orig/libc/sysdeps/linux/x86_64/bits/mathinline.h | ||
170 | +++ git/libc/sysdeps/linux/x86_64/bits/mathinline.h | ||
171 | @@ -25,7 +25,7 @@ | ||
172 | #ifdef __cplusplus | ||
173 | # define __MATH_INLINE __inline | ||
174 | #else | ||
175 | -# define __MATH_INLINE extern __inline | ||
176 | +# define __MATH_INLINE __extern_inline | ||
177 | #endif | ||
178 | |||
179 | |||