]> git.pld-linux.org Git - packages/glibc.git/blame - glibc-gcc4.patch
- merged sparc64 updates from AC-branch (enhanced for ppc64,s390x)
[packages/glibc.git] / glibc-gcc4.patch
CommitLineData
b1c84420
PS
1This patch fixes build error
2
31).
4In file included from ../include/pthread.h:1,
5from ../nptl/sysdeps/pthread/bits/libc-lock.h:23,
6from ./gconv_int.h:25,
7from gconv.c:23:
8../nptl/sysdeps/pthread/pthread.h:664: error: array type has incomplete element type
9
102).
11rtld.c: In function '_dl_start':
12dynamic-link.h:47: error: nested function 'elf_machine_rela_relative' declared but never defined
13dynamic-link.h:41: error: nested function 'elf_machine_rela' declared but never defined
14
153).
16In file included from jis0208.c:23:
17jis0208.h:32: error: array type has incomplete element type
18
19 elf/dynamic-link.h | 37 -------------------------------------
20 iconvdata/jis0208.h | 16 +++++++---------
21 nptl/sysdeps/pthread/pthread.h | 3 +--
22 3 files changed, 8 insertions(+), 48 deletions(-)
23
24--- glibc-2.3.4/nptl/sysdeps/pthread/pthread.h.orig 2004-11-24 23:55:24.000000000 +0100
25+++ glibc-2.3.4/nptl/sysdeps/pthread/pthread.h 2005-02-14 16:24:22.104239520 +0100
26@@ -24,9 +24,9 @@
27 #include <time.h>
28
29 #define __need_sigset_t
30+#include <setjmp.h>
31 #include <signal.h>
32 #include <bits/pthreadtypes.h>
33-#include <bits/setjmp.h>
34 #include <bits/wordsize.h>
35
36
37@@ -660,7 +660,6 @@
38 #endif
39
40 /* Function used in the macros. */
41-struct __jmp_buf_tag;
42 extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask) __THROW;
43
44
45--- glibc-2.3.4/elf/dynamic-link.h.orig 2004-09-24 19:09:03.000000000 +0200
46+++ glibc-2.3.4/elf/dynamic-link.h 2005-02-16 10:37:32.664843192 +0100
47@@ -19,43 +19,6 @@
48
49 #include <elf.h>
50 #include <assert.h>
51-
52-#ifdef RESOLVE
53-/* We pass reloc_addr as a pointer to void, as opposed to a pointer to
54- ElfW(Addr), because not all architectures can assume that the
55- relocated address is properly aligned, whereas the compiler is
56- entitled to assume that a pointer to a type is properly aligned for
57- the type. Even if we cast the pointer back to some other type with
58- less strict alignment requirements, the compiler might still
59- remember that the pointer was originally more aligned, thereby
60- optimizing away alignment tests or using word instructions for
61- copying memory, breaking the very code written to handle the
62- unaligned cases. */
63-auto void __attribute__((always_inline))
64-elf_machine_rel (struct link_map *map, const ElfW(Rel) *reloc,
65- const ElfW(Sym) *sym, const struct r_found_version *version,
66- void *const reloc_addr);
67-auto void __attribute__((always_inline))
68-elf_machine_rela (struct link_map *map, const ElfW(Rela) *reloc,
69- const ElfW(Sym) *sym, const struct r_found_version *version,
70- void *const reloc_addr);
71-auto void __attribute__((always_inline))
72-elf_machine_rel_relative (ElfW(Addr) l_addr, const ElfW(Rel) *reloc,
73- void *const reloc_addr);
74-auto void __attribute__((always_inline))
75-elf_machine_rela_relative (ElfW(Addr) l_addr, const ElfW(Rela) *reloc,
76- void *const reloc_addr);
77-# if ELF_MACHINE_NO_RELA || defined ELF_MACHINE_PLT_REL
78-auto void __attribute__((always_inline))
79-elf_machine_lazy_rel (struct link_map *map,
80- ElfW(Addr) l_addr, const ElfW(Rel) *reloc);
81-# else
82-auto void __attribute__((always_inline))
83-elf_machine_lazy_rel (struct link_map *map,
84- ElfW(Addr) l_addr, const ElfW(Rela) *reloc);
85-# endif
86-#endif
87-
88 #include <dl-machine.h>
89
90 #ifndef VERSYMIDX
91--- glibc-2.3.4/iconvdata/jis0208.h.orig 2005-02-16 10:30:39.185701576 +0100
92+++ glibc-2.3.4/iconvdata/jis0208.h 2005-02-16 10:31:18.736688912 +0100
93@@ -24,15 +24,6 @@
94 #include <gconv.h>
95 #include <stdint.h>
96
97-/* Conversion table. */
98-extern const uint16_t __jis0208_to_ucs[];
99-
100-extern const char __jisx0208_from_ucs4_lat1[256][2];
101-extern const char __jisx0208_from_ucs4_greek[0xc1][2];
102-extern const struct jisx0208_ucs_idx __jisx0208_from_ucs_idx[];
103-extern const char __jisx0208_from_ucs_tab[][2];
104-
105-
106 /* Struct for table with indeces in UCS mapping table. */
107 struct jisx0208_ucs_idx
108 {
109@@ -41,6 +32,13 @@
110 uint16_t idx;
111 };
112
113+/* Conversion table. */
114+extern const uint16_t __jis0208_to_ucs[];
115+
116+extern const char __jisx0208_from_ucs4_lat1[256][2];
117+extern const char __jisx0208_from_ucs4_greek[0xc1][2];
118+extern const struct jisx0208_ucs_idx __jisx0208_from_ucs_idx[];
119+extern const char __jisx0208_from_ucs_tab[14210][2];
120
121 static inline uint32_t
122 __attribute ((always_inline))
This page took 0.041464 seconds and 4 git commands to generate.