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