diff options
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc-0.9.30.1/Use-__always_inline-instead-of-__inline__.patch')
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-0.9.30.1/Use-__always_inline-instead-of-__inline__.patch | 393 |
1 files changed, 393 insertions, 0 deletions
diff --git a/meta/recipes-core/uclibc/uclibc-0.9.30.1/Use-__always_inline-instead-of-__inline__.patch b/meta/recipes-core/uclibc/uclibc-0.9.30.1/Use-__always_inline-instead-of-__inline__.patch new file mode 100644 index 0000000000..a9c7a4fb10 --- /dev/null +++ b/meta/recipes-core/uclibc/uclibc-0.9.30.1/Use-__always_inline-instead-of-__inline__.patch | |||
@@ -0,0 +1,393 @@ | |||
1 | From c190f738e1b0e87658ea5f86c057fb147dc19428 Mon Sep 17 00:00:00 2001 | ||
2 | From: Carmelo Amoroso <carmelo.amoroso@st.com> | ||
3 | Date: Thu, 5 Mar 2009 13:28:55 +0000 | ||
4 | Subject: [PATCH] Use __always_inline instead of __inline__ | ||
5 | |||
6 | --- | ||
7 | ldso/ldso/arm/dl-sysdep.h | 8 ++++---- | ||
8 | ldso/ldso/bfin/dl-sysdep.h | 2 +- | ||
9 | ldso/ldso/cris/dl-sysdep.h | 6 +++--- | ||
10 | ldso/ldso/i386/dl-sysdep.h | 10 +++++----- | ||
11 | ldso/ldso/m68k/dl-sysdep.h | 6 +++--- | ||
12 | ldso/ldso/mips/dl-sysdep.h | 8 ++++---- | ||
13 | ldso/ldso/powerpc/dl-sysdep.h | 8 ++++---- | ||
14 | ldso/ldso/sh/dl-sysdep.h | 8 ++++---- | ||
15 | ldso/ldso/sh64/dl-sysdep.h | 6 +++--- | ||
16 | ldso/ldso/sparc/dl-sysdep.h | 8 ++++---- | ||
17 | ldso/ldso/xtensa/dl-sysdep.h | 6 +++--- | ||
18 | 11 files changed, 38 insertions(+), 38 deletions(-) | ||
19 | |||
20 | diff --git a/ldso/ldso/arm/dl-sysdep.h b/ldso/ldso/arm/dl-sysdep.h | ||
21 | index eea3b98..5191dd7 100644 | ||
22 | --- a/ldso/ldso/arm/dl-sysdep.h | ||
23 | +++ b/ldso/ldso/arm/dl-sysdep.h | ||
24 | @@ -15,7 +15,7 @@ | ||
25 | GOT_BASE[1] = (unsigned long) MODULE; \ | ||
26 | } | ||
27 | |||
28 | -static __inline__ unsigned long arm_modulus(unsigned long m, unsigned long p) | ||
29 | +static __always_inline unsigned long arm_modulus(unsigned long m, unsigned long p) | ||
30 | { | ||
31 | unsigned long i,t,inc; | ||
32 | i=p; t=0; | ||
33 | @@ -67,7 +67,7 @@ unsigned long _dl_linux_resolver(struct elf_resolve * tpnt, int reloc_entry); | ||
34 | first element of the GOT. We used to use the PIC register to do this | ||
35 | without a constant pool reference, but GCC 4.2 will use a pseudo-register | ||
36 | for the PIC base, so it may not be in r10. */ | ||
37 | -static __inline__ Elf32_Addr __attribute__ ((unused)) | ||
38 | +static __always_inline Elf32_Addr __attribute__ ((unused)) | ||
39 | elf_machine_dynamic (void) | ||
40 | { | ||
41 | Elf32_Addr dynamic; | ||
42 | @@ -99,7 +99,7 @@ elf_machine_dynamic (void) | ||
43 | } | ||
44 | |||
45 | /* Return the run-time load address of the shared object. */ | ||
46 | -static __inline__ Elf32_Addr __attribute__ ((unused)) | ||
47 | +static __always_inline Elf32_Addr __attribute__ ((unused)) | ||
48 | elf_machine_load_address (void) | ||
49 | { | ||
50 | extern void __dl_start __asm__ ("_dl_start"); | ||
51 | @@ -123,7 +123,7 @@ elf_machine_load_address (void) | ||
52 | return pcrel_addr - got_addr; | ||
53 | } | ||
54 | |||
55 | -static __inline__ void | ||
56 | +static __always_inline void | ||
57 | elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr, | ||
58 | Elf32_Word relative_count) | ||
59 | { | ||
60 | diff --git a/ldso/ldso/bfin/dl-sysdep.h b/ldso/ldso/bfin/dl-sysdep.h | ||
61 | index 3c88da4..f0c5129 100644 | ||
62 | --- a/ldso/ldso/bfin/dl-sysdep.h | ||
63 | +++ b/ldso/ldso/bfin/dl-sysdep.h | ||
64 | @@ -210,7 +210,7 @@ while (0) | ||
65 | #endif | ||
66 | |||
67 | #include <elf.h> | ||
68 | -static __inline__ void | ||
69 | +static __always_inline void | ||
70 | elf_machine_relative (DL_LOADADDR_TYPE load_off, const Elf32_Addr rel_addr, | ||
71 | Elf32_Word relative_count) | ||
72 | { | ||
73 | diff --git a/ldso/ldso/cris/dl-sysdep.h b/ldso/ldso/cris/dl-sysdep.h | ||
74 | index ffb763a..e454c10 100644 | ||
75 | --- a/ldso/ldso/cris/dl-sysdep.h | ||
76 | +++ b/ldso/ldso/cris/dl-sysdep.h | ||
77 | @@ -37,7 +37,7 @@ extern unsigned long _dl_linux_resolver(struct elf_resolve *tpnt, int reloc_entr | ||
78 | || ((type) == R_CRIS_GLOB_DAT)) * ELF_RTYPE_CLASS_PLT) \ | ||
79 | | (((type) == R_CRIS_COPY) * ELF_RTYPE_CLASS_COPY)) | ||
80 | |||
81 | -static __inline__ Elf32_Addr | ||
82 | +static __always_inline Elf32_Addr | ||
83 | elf_machine_dynamic(void) | ||
84 | { | ||
85 | /* Don't just set this to an asm variable "r0" since that's not logical | ||
86 | @@ -59,7 +59,7 @@ elf_machine_dynamic(void) | ||
87 | there's some other symbol we could use, that we don't *have* to force a | ||
88 | GOT entry for. */ | ||
89 | |||
90 | -static __inline__ Elf32_Addr | ||
91 | +static __always_inline Elf32_Addr | ||
92 | elf_machine_load_address(void) | ||
93 | { | ||
94 | Elf32_Addr gotaddr_diff; | ||
95 | @@ -93,7 +93,7 @@ elf_machine_load_address(void) | ||
96 | return gotaddr_diff; | ||
97 | } | ||
98 | |||
99 | -static __inline__ void | ||
100 | +static __always_inline void | ||
101 | elf_machine_relative(Elf32_Addr load_off, const Elf32_Addr rel_addr, | ||
102 | Elf32_Word relative_count) | ||
103 | { | ||
104 | diff --git a/ldso/ldso/i386/dl-sysdep.h b/ldso/ldso/i386/dl-sysdep.h | ||
105 | index 77fa372..6e84861 100644 | ||
106 | --- a/ldso/ldso/i386/dl-sysdep.h | ||
107 | +++ b/ldso/ldso/i386/dl-sysdep.h | ||
108 | @@ -37,8 +37,8 @@ extern unsigned long _dl_linux_resolver(struct elf_resolve * tpnt, int reloc_ent | ||
109 | /* Return the link-time address of _DYNAMIC. Conveniently, this is the | ||
110 | first element of the GOT. This must be inlined in a function which | ||
111 | uses global data. */ | ||
112 | -static __inline__ Elf32_Addr elf_machine_dynamic (void) attribute_unused; | ||
113 | -static __inline__ Elf32_Addr | ||
114 | +static __always_inline Elf32_Addr elf_machine_dynamic (void) attribute_unused; | ||
115 | +static __always_inline Elf32_Addr | ||
116 | elf_machine_dynamic (void) | ||
117 | { | ||
118 | register Elf32_Addr *got __asm__ ("%ebx"); | ||
119 | @@ -47,8 +47,8 @@ elf_machine_dynamic (void) | ||
120 | |||
121 | |||
122 | /* Return the run-time load address of the shared object. */ | ||
123 | -static __inline__ Elf32_Addr elf_machine_load_address (void) attribute_unused; | ||
124 | -static __inline__ Elf32_Addr | ||
125 | +static __always_inline Elf32_Addr elf_machine_load_address (void) attribute_unused; | ||
126 | +static __always_inline Elf32_Addr | ||
127 | elf_machine_load_address (void) | ||
128 | { | ||
129 | /* It doesn't matter what variable this is, the reference never makes | ||
130 | @@ -61,7 +61,7 @@ elf_machine_load_address (void) | ||
131 | return addr; | ||
132 | } | ||
133 | |||
134 | -static __inline__ void | ||
135 | +static __always_inline void | ||
136 | elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr, | ||
137 | Elf32_Word relative_count) | ||
138 | { | ||
139 | diff --git a/ldso/ldso/m68k/dl-sysdep.h b/ldso/ldso/m68k/dl-sysdep.h | ||
140 | index 8e26e20..259cb84 100644 | ||
141 | --- a/ldso/ldso/m68k/dl-sysdep.h | ||
142 | +++ b/ldso/ldso/m68k/dl-sysdep.h | ||
143 | @@ -39,7 +39,7 @@ extern unsigned long _dl_linux_resolver (struct elf_resolve *, int); | ||
144 | /* Return the link-time address of _DYNAMIC. Conveniently, this is the | ||
145 | first element of the GOT. This must be inlined in a function which | ||
146 | uses global data. */ | ||
147 | -static __inline__ Elf32_Addr | ||
148 | +static __always_inline Elf32_Addr | ||
149 | elf_machine_dynamic (void) | ||
150 | { | ||
151 | register Elf32_Addr *got __asm__ ("%a5"); | ||
152 | @@ -48,7 +48,7 @@ elf_machine_dynamic (void) | ||
153 | |||
154 | |||
155 | /* Return the run-time load address of the shared object. */ | ||
156 | -static __inline__ Elf32_Addr | ||
157 | +static __always_inline Elf32_Addr | ||
158 | elf_machine_load_address (void) | ||
159 | { | ||
160 | Elf32_Addr addr; | ||
161 | @@ -58,7 +58,7 @@ elf_machine_load_address (void) | ||
162 | return addr; | ||
163 | } | ||
164 | |||
165 | -static __inline__ void | ||
166 | +static __always_inline void | ||
167 | elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr, | ||
168 | Elf32_Word relative_count) | ||
169 | { | ||
170 | diff --git a/ldso/ldso/mips/dl-sysdep.h b/ldso/ldso/mips/dl-sysdep.h | ||
171 | index cf6b28b..30d84fb 100644 | ||
172 | --- a/ldso/ldso/mips/dl-sysdep.h | ||
173 | +++ b/ldso/ldso/mips/dl-sysdep.h | ||
174 | @@ -169,7 +169,7 @@ void _dl_perform_mips_global_got_relocations(struct elf_resolve *tpnt, int lazy) | ||
175 | |||
176 | #define OFFSET_GP_GOT 0x7ff0 | ||
177 | |||
178 | -static __inline__ ElfW(Addr) * | ||
179 | +static __always_inline ElfW(Addr) * | ||
180 | elf_mips_got_from_gpreg (ElfW(Addr) gpreg) | ||
181 | { | ||
182 | /* FIXME: the offset of gp from GOT may be system-dependent. */ | ||
183 | @@ -179,7 +179,7 @@ elf_mips_got_from_gpreg (ElfW(Addr) gpreg) | ||
184 | /* Return the link-time address of _DYNAMIC. Conveniently, this is the | ||
185 | first element of the GOT. This must be inlined in a function which | ||
186 | uses global data. We assume its $gp points to the primary GOT. */ | ||
187 | -static __inline__ ElfW(Addr) | ||
188 | +static __always_inline ElfW(Addr) | ||
189 | elf_machine_dynamic (void) | ||
190 | { | ||
191 | register ElfW(Addr) gp __asm__ ("$28"); | ||
192 | @@ -198,7 +198,7 @@ elf_machine_dynamic (void) | ||
193 | #endif | ||
194 | |||
195 | /* Return the run-time load address of the shared object. */ | ||
196 | -static __inline__ ElfW(Addr) | ||
197 | +static __always_inline ElfW(Addr) | ||
198 | elf_machine_load_address (void) | ||
199 | { | ||
200 | ElfW(Addr) addr; | ||
201 | @@ -214,7 +214,7 @@ elf_machine_load_address (void) | ||
202 | return addr; | ||
203 | } | ||
204 | |||
205 | -static __inline__ void | ||
206 | +static __always_inline void | ||
207 | elf_machine_relative (ElfW(Addr) load_off, const ElfW(Addr) rel_addr, | ||
208 | ElfW(Word) relative_count) | ||
209 | { | ||
210 | diff --git a/ldso/ldso/powerpc/dl-sysdep.h b/ldso/ldso/powerpc/dl-sysdep.h | ||
211 | index fdbf564..f33214c 100644 | ||
212 | --- a/ldso/ldso/powerpc/dl-sysdep.h | ||
213 | +++ b/ldso/ldso/powerpc/dl-sysdep.h | ||
214 | @@ -85,7 +85,7 @@ void _dl_init_got(unsigned long *lpnt,struct elf_resolve *tpnt); | ||
215 | #define ELF_MACHINE_PLTREL_OVERLAP 1 | ||
216 | |||
217 | /* Return the value of the GOT pointer. */ | ||
218 | -static __inline__ Elf32_Addr * __attribute__ ((const)) | ||
219 | +static __always_inline Elf32_Addr * __attribute__ ((const)) | ||
220 | ppc_got (void) | ||
221 | { | ||
222 | Elf32_Addr *got; | ||
223 | @@ -104,14 +104,14 @@ ppc_got (void) | ||
224 | |||
225 | /* Return the link-time address of _DYNAMIC, stored as | ||
226 | the first value in the GOT. */ | ||
227 | -static __inline__ Elf32_Addr __attribute__ ((const)) | ||
228 | +static __always_inline Elf32_Addr __attribute__ ((const)) | ||
229 | elf_machine_dynamic (void) | ||
230 | { | ||
231 | return *ppc_got(); | ||
232 | } | ||
233 | |||
234 | /* Return the run-time load address of the shared object. */ | ||
235 | -static __inline__ Elf32_Addr __attribute__ ((const)) | ||
236 | +static __always_inline Elf32_Addr __attribute__ ((const)) | ||
237 | elf_machine_load_address (void) | ||
238 | { | ||
239 | Elf32_Addr *branchaddr; | ||
240 | @@ -159,7 +159,7 @@ elf_machine_load_address (void) | ||
241 | return runtime_dynamic - elf_machine_dynamic (); | ||
242 | } | ||
243 | |||
244 | -static __inline__ void | ||
245 | +static __always_inline void | ||
246 | elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr, | ||
247 | Elf32_Word relative_count) | ||
248 | { | ||
249 | diff --git a/ldso/ldso/sh/dl-sysdep.h b/ldso/ldso/sh/dl-sysdep.h | ||
250 | index daedda5..d4fc784 100644 | ||
251 | --- a/ldso/ldso/sh/dl-sysdep.h | ||
252 | +++ b/ldso/ldso/sh/dl-sysdep.h | ||
253 | @@ -25,7 +25,7 @@ | ||
254 | struct elf_resolve; | ||
255 | extern unsigned long _dl_linux_resolver(struct elf_resolve * tpnt, int reloc_entry); | ||
256 | |||
257 | -static __inline__ unsigned int | ||
258 | +static __always_inline unsigned int | ||
259 | _dl_urem(unsigned int n, unsigned int base) | ||
260 | { | ||
261 | int res; | ||
262 | @@ -95,7 +95,7 @@ _dl_urem(unsigned int n, unsigned int base) | ||
263 | /* Return the link-time address of _DYNAMIC. Conveniently, this is the | ||
264 | first element of the GOT. This must be inlined in a function which | ||
265 | uses global data. */ | ||
266 | -static __inline__ Elf32_Addr __attribute__ ((unused)) | ||
267 | +static __always_inline Elf32_Addr __attribute__ ((unused)) | ||
268 | elf_machine_dynamic (void) | ||
269 | { | ||
270 | register Elf32_Addr *got; | ||
271 | @@ -104,7 +104,7 @@ elf_machine_dynamic (void) | ||
272 | } | ||
273 | |||
274 | /* Return the run-time load address of the shared object. */ | ||
275 | -static __inline__ Elf32_Addr __attribute__ ((unused)) | ||
276 | +static __always_inline Elf32_Addr __attribute__ ((unused)) | ||
277 | elf_machine_load_address (void) | ||
278 | { | ||
279 | Elf32_Addr addr; | ||
280 | @@ -146,7 +146,7 @@ elf_machine_load_address (void) | ||
281 | } \ | ||
282 | } | ||
283 | |||
284 | -static __inline__ void | ||
285 | +static __always_inline void | ||
286 | elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr, | ||
287 | Elf32_Word relative_count) | ||
288 | { | ||
289 | diff --git a/ldso/ldso/sh64/dl-sysdep.h b/ldso/ldso/sh64/dl-sysdep.h | ||
290 | index fc67b12..15d9b5e 100644 | ||
291 | --- a/ldso/ldso/sh64/dl-sysdep.h | ||
292 | +++ b/ldso/ldso/sh64/dl-sysdep.h | ||
293 | @@ -41,7 +41,7 @@ extern unsigned long _dl_linux_resolver(struct elf_resolve * tpnt, int reloc_ent | ||
294 | /* Return the link-time address of _DYNAMIC. Conveniently, this is the | ||
295 | first element of the GOT. This must be inlined in a function which | ||
296 | uses global data. */ | ||
297 | -static __inline__ Elf32_Addr elf_machine_dynamic(void) | ||
298 | +static __always_inline Elf32_Addr elf_machine_dynamic(void) | ||
299 | { | ||
300 | register Elf32_Addr *got; | ||
301 | |||
302 | @@ -69,7 +69,7 @@ static __inline__ Elf32_Addr elf_machine_dynamic(void) | ||
303 | } | ||
304 | |||
305 | /* Return the run-time load address of the shared object. */ | ||
306 | -static __inline__ Elf32_Addr elf_machine_load_address(void) | ||
307 | +static __always_inline Elf32_Addr elf_machine_load_address(void) | ||
308 | { | ||
309 | Elf32_Addr addr; | ||
310 | |||
311 | @@ -122,7 +122,7 @@ static __inline__ Elf32_Addr elf_machine_load_address(void) | ||
312 | } \ | ||
313 | } | ||
314 | |||
315 | -static __inline__ void | ||
316 | +static __always_inline void | ||
317 | elf_machine_relative(Elf32_Addr load_off, const Elf32_Addr rel_addr, | ||
318 | Elf32_Word relative_count) | ||
319 | { | ||
320 | diff --git a/ldso/ldso/sparc/dl-sysdep.h b/ldso/ldso/sparc/dl-sysdep.h | ||
321 | index 7936517..ebfa268 100644 | ||
322 | --- a/ldso/ldso/sparc/dl-sysdep.h | ||
323 | +++ b/ldso/ldso/sparc/dl-sysdep.h | ||
324 | @@ -52,7 +52,7 @@ unsigned long _dl_linux_resolver(struct elf_resolve * tpnt, int reloc_entry); | ||
325 | |||
326 | #ifndef COMPILE_ASM | ||
327 | /* Cheap modulo implementation, taken from arm/ld_sysdep.h. */ | ||
328 | -static __inline__ unsigned long | ||
329 | +static __always_inline unsigned long | ||
330 | sparc_mod(unsigned long m, unsigned long p) | ||
331 | { | ||
332 | unsigned long i, t, inc; | ||
333 | @@ -118,7 +118,7 @@ do { register Elf32_Addr pc __asm__("o7"); \ | ||
334 | /* Return the link-time address of _DYNAMIC. Conveniently, this is the | ||
335 | first element of the GOT. This must be inlined in a function which | ||
336 | uses global data. */ | ||
337 | -static __inline__ Elf32_Addr | ||
338 | +static __always_inline Elf32_Addr | ||
339 | elf_machine_dynamic (void) | ||
340 | { | ||
341 | register Elf32_Addr *got __asm__ ("%l7"); | ||
342 | @@ -129,7 +129,7 @@ elf_machine_dynamic (void) | ||
343 | } | ||
344 | |||
345 | /* Return the run-time load address of the shared object. */ | ||
346 | -static __inline__ Elf32_Addr | ||
347 | +static __always_inline Elf32_Addr | ||
348 | elf_machine_load_address (void) | ||
349 | { | ||
350 | register Elf32_Addr *pc __asm__ ("%o7"), *got __asm__ ("%l7"); | ||
351 | @@ -148,7 +148,7 @@ elf_machine_load_address (void) | ||
352 | return (Elf32_Addr) got - *got + (pc[2] - pc[3]) * 4 - 4; | ||
353 | } | ||
354 | |||
355 | -static __inline__ void | ||
356 | +static __always_inline void | ||
357 | elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr, | ||
358 | Elf32_Word relative_count) | ||
359 | { | ||
360 | diff --git a/ldso/ldso/xtensa/dl-sysdep.h b/ldso/ldso/xtensa/dl-sysdep.h | ||
361 | index daae428..07b9b79 100644 | ||
362 | --- a/ldso/ldso/xtensa/dl-sysdep.h | ||
363 | +++ b/ldso/ldso/xtensa/dl-sysdep.h | ||
364 | @@ -85,7 +85,7 @@ extern unsigned long _dl_linux_resolver (struct elf_resolve *, int); | ||
365 | (((type) == R_XTENSA_JMP_SLOT) * ELF_RTYPE_CLASS_PLT) | ||
366 | |||
367 | /* Return the link-time address of _DYNAMIC. */ | ||
368 | -static __inline__ Elf32_Addr | ||
369 | +static __always_inline Elf32_Addr | ||
370 | elf_machine_dynamic (void) | ||
371 | { | ||
372 | /* This function is only used while bootstrapping the runtime linker. | ||
373 | @@ -95,7 +95,7 @@ elf_machine_dynamic (void) | ||
374 | } | ||
375 | |||
376 | /* Return the run-time load address of the shared object. */ | ||
377 | -static __inline__ Elf32_Addr | ||
378 | +static __always_inline Elf32_Addr | ||
379 | elf_machine_load_address (void) | ||
380 | { | ||
381 | Elf32_Addr addr, tmp; | ||
382 | @@ -116,7 +116,7 @@ elf_machine_load_address (void) | ||
383 | return addr - 3; | ||
384 | } | ||
385 | |||
386 | -static __inline__ void | ||
387 | +static __always_inline void | ||
388 | elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr, | ||
389 | Elf32_Word relative_count) | ||
390 | { | ||
391 | -- | ||
392 | 1.6.3.3.444.g4ecbc | ||
393 | |||