]> git.pld-linux.org Git - packages/elfutils.git/blob - elfutils-inline.patch
- disable run-elflint-self.sh on sparcs and alpha
[packages/elfutils.git] / elfutils-inline.patch
1 --- elfutils-0.127/src/ld.h.orig        2006-07-12 01:20:42.000000000 +0200
2 +++ elfutils-0.127/src/ld.h     2007-05-19 16:13:40.015849251 +0200
3 @@ -1087,7 +1087,7 @@
4  
5  /* Checked whether the symbol is undefined and referenced from a DSO.  */
6  extern bool linked_from_dso_p (struct scninfo *scninfo, size_t symidx);
7 -extern inline bool
8 +extern __gnu_inline bool
9  linked_from_dso_p (struct scninfo *scninfo, size_t symidx)
10  {
11    struct usedfiles *file = scninfo->fileinfo;
12 --- elfutils-0.127/libdwfl/dwfl_module_getsrc_file.c.orig       2006-04-11 22:52:05.000000000 +0200
13 +++ elfutils-0.127/libdwfl/dwfl_module_getsrc_file.c    2007-05-19 16:09:31.910875393 +0200
14 @@ -79,15 +79,15 @@
15          && cu != NULL
16          && (error = __libdwfl_cu_getsrclines (cu)) == DWFL_E_NOERROR)
17      {
18 -      inline const char *INTUSE(dwarf_line_file) (const Dwarf_Line *line)
19 +      __gnu_inline const char *INTUSE(dwarf_line_file) (const Dwarf_Line *line)
20         {
21           return line->files->info[line->file].name;
22         }
23 -      inline Dwarf_Line *dwfl_line (const Dwfl_Line *line)
24 +      __gnu_inline Dwarf_Line *dwfl_line (const Dwfl_Line *line)
25         {
26           return &dwfl_linecu (line)->die.cu->lines->info[line->idx];
27         }
28 -      inline const char *dwfl_line_file (const Dwfl_Line *line)
29 +      __gnu_inline const char *dwfl_line_file (const Dwfl_Line *line)
30         {
31           return INTUSE(dwarf_line_file) (dwfl_line (line));
32         }
33 --- elfutils-0.127/libdwfl/elf-from-memory.c.orig       2007-03-11 03:11:55.000000000 +0100
34 +++ elfutils-0.127/libdwfl/elf-from-memory.c    2007-05-19 16:09:58.174735114 +0200
35 @@ -215,7 +215,7 @@
36    GElf_Addr loadbase = ehdr_vma;
37    switch (ehdr.e32.e_ident[EI_CLASS])
38      {
39 -      inline void handle_segment (GElf_Addr vaddr, GElf_Off offset,
40 +      __gnu_inline void handle_segment (GElf_Addr vaddr, GElf_Off offset,
41                                   GElf_Xword filesz, GElf_Xword align)
42         {
43           GElf_Off segment_end = ((offset + filesz + align - 1) & -align);
44 @@ -276,7 +276,7 @@
45  
46    switch (ehdr.e32.e_ident[EI_CLASS])
47      {
48 -      inline bool handle_segment (GElf_Addr vaddr, GElf_Off offset,
49 +      __gnu_inline bool handle_segment (GElf_Addr vaddr, GElf_Off offset,
50                                   GElf_Xword filesz, GElf_Xword align)
51         {
52           GElf_Off start = offset & -align;
53 --- elfutils-0.127/libdwfl/argp-std.c.orig      2007-04-05 11:12:36.000000000 +0200
54 +++ elfutils-0.127/libdwfl/argp-std.c   2007-05-19 16:08:04.209055832 +0200
55 @@ -106,7 +106,7 @@
56  static error_t
57  parse_opt (int key, char *arg, struct argp_state *state)
58  {
59 -  inline void failure (Dwfl *dwfl, int errnum, const char *msg)
60 +  __gnu_inline void failure (Dwfl *dwfl, int errnum, const char *msg)
61      {
62        if (errnum == -1)
63         argp_failure (state, EXIT_FAILURE, 0, "%s: %s",
64 @@ -116,7 +116,7 @@
65        if (dwfl != NULL)
66         dwfl_end (dwfl);
67      }
68 -  inline error_t fail (Dwfl *dwfl, int errnum, const char *msg)
69 +  __gnu_inline error_t fail (Dwfl *dwfl, int errnum, const char *msg)
70      {
71        failure (dwfl, errnum, msg);
72        return errnum == -1 ? EIO : errnum;
73 --- elfutils-0.127/libdwfl/linux-kernel-modules.c.orig  2007-03-04 23:30:54.000000000 +0100
74 +++ elfutils-0.127/libdwfl/linux-kernel-modules.c       2007-05-19 16:08:38.559806212 +0200
75 @@ -347,7 +347,7 @@
76  {
77    Dwarf_Addr start;
78    Dwarf_Addr end;
79 -  inline int report (void)
80 +  __gnu_inline int report (void)
81      {
82        return INTUSE(dwfl_report_module) (dwfl, KERNEL_MODNAME,
83                                          start, end) == NULL ? -1 : 0;
84 @@ -421,7 +421,7 @@
85       only '_' and one only using '-'.  */
86  
87    char alternate_name[namelen + 1];
88 -  inline bool subst_name (char from, char to)
89 +  __gnu_inline bool subst_name (char from, char to)
90      {
91        const char *n = memchr (module_name, from, namelen);
92        if (n == NULL)
93 --- elfutils-0.127/libdwfl/linux-proc-maps.c.orig       2007-04-05 11:12:36.000000000 +0200
94 +++ elfutils-0.127/libdwfl/linux-proc-maps.c    2007-05-19 16:09:02.093611158 +0200
95 @@ -134,7 +134,7 @@
96    char *last_file = NULL;
97    Dwarf_Addr low = 0, high = 0;
98  
99 -  inline bool report (void)
100 +  __gnu_inline bool report (void)
101      {
102        if (last_file != NULL)
103         {
104 --- elfutils-0.127/libdwfl/dwfl_module_addrsym.c.orig   2007-03-04 23:00:19.000000000 +0100
105 +++ elfutils-0.127/libdwfl/dwfl_module_addrsym.c        2007-05-19 16:10:28.605345054 +0200
106 @@ -59,7 +59,7 @@
107  
108    /* Return true iff we consider ADDR to lie in the same section as SYM.  */
109    GElf_Word addr_shndx = SHN_UNDEF;
110 -  inline bool same_section (const GElf_Sym *sym, GElf_Word shndx)
111 +  __gnu_inline bool same_section (const GElf_Sym *sym, GElf_Word shndx)
112      {
113        /* For absolute symbols and the like, only match exactly.  */
114        if (shndx >= SHN_LORESERVE)
115 @@ -108,7 +108,7 @@
116        const char *name = INTUSE(dwfl_module_getsym) (mod, i, &sym, &shndx);
117        if (name != NULL && sym.st_value <= addr)
118         {
119 -         inline void closest (void)
120 +         __gnu_inline void closest (void)
121             {
122               *closest_sym = sym;
123               closest_shndx = shndx;
124 --- elfutils-0.127/backends/ia64_retval.c.orig  2006-07-21 13:28:28.000000000 +0200
125 +++ elfutils-0.127/backends/ia64_retval.c       2007-05-19 16:13:08.295213177 +0200
126 @@ -96,7 +96,7 @@
127       If we find a datum that's not the same FP type as the first datum, punt.
128       If we count more than eight total homogeneous FP data, punt.  */
129  
130 -  inline int hfa (const Dwarf_Op *loc, int nregs)
131 +  __gnu_inline int hfa (const Dwarf_Op *loc, int nregs)
132      {
133        if (fpregs_used == 0)
134         *locp = loc;
135 --- elfutils-0.127/libdw/libdw.h.orig   2007-04-05 12:33:43.000000000 +0200
136 +++ elfutils-0.127/libdw/libdw.h        2007-05-19 16:07:34.811667724 +0200
137 @@ -623,15 +623,20 @@
138  
139  /* Inline optimizations.  */
140  #ifdef __OPTIMIZE__
141 +# if defined(__GNUC_STDC_INLINE__) || defined(__GNUC_GNU_INLINE__)
142 +#  define __gnu_inline inline __attribute__ ((__gnu_inline__))
143 +# else
144 +#  define __gnu_inline inline
145 +# endif
146  /* Return attribute code of given attribute.  */
147 -extern inline unsigned int
148 +extern __gnu_inline unsigned int
149  dwarf_whatattr (Dwarf_Attribute *attr)
150  {
151    return attr == NULL ? 0 : attr->code;
152  }
153  
154  /* Return attribute code of given attribute.  */
155 -extern inline unsigned int
156 +extern __gnu_inline unsigned int
157  dwarf_whatform (Dwarf_Attribute *attr)
158  {
159    return attr == NULL ? 0 : attr->form;
160 --- elfutils-0.127/libdw/dwarf_getscopevar.c.orig       2006-04-11 22:52:05.000000000 +0200
161 +++ elfutils-0.127/libdw/dwarf_getscopevar.c    2007-05-19 16:11:06.586106385 +0200
162 @@ -93,7 +93,7 @@
163    size_t match_file_len = match_file == NULL ? 0 : strlen (match_file);
164    bool lastfile_matches = false;
165    const char *lastfile = NULL;
166 -  inline bool file_matches (Dwarf_Files *files, size_t idx)
167 +  __gnu_inline bool file_matches (Dwarf_Files *files, size_t idx)
168      {
169        if (idx >= files->nfiles)
170         return false;
171 --- elfutils-0.127/libdw/libdw_visit_scopes.c.orig      2006-04-11 22:52:05.000000000 +0200
172 +++ elfutils-0.127/libdw/libdw_visit_scopes.c   2007-05-19 16:11:28.309875205 +0200
173 @@ -107,7 +107,7 @@
174    if (INTUSE(dwarf_child) (&root->die, &child.die) != 0)
175      return -1;
176  
177 -  inline int recurse (void)
178 +  __gnu_inline int recurse (void)
179      {
180        return __libdw_visit_scopes (depth + 1, &child,
181                                    previsit, postvisit, arg);
182 --- elfutils-0.127/libdw/dwarf_entry_breakpoints.c.orig 2006-04-11 22:52:05.000000000 +0200
183 +++ elfutils-0.127/libdw/dwarf_entry_breakpoints.c      2007-05-19 16:12:17.807534209 +0200
184 @@ -64,7 +64,7 @@
185    *bkpts = NULL;
186  
187    /* Add one breakpoint location to the result vector.  */
188 -  inline int add_bkpt (Dwarf_Addr pc)
189 +  __gnu_inline int add_bkpt (Dwarf_Addr pc)
190      {
191        Dwarf_Addr *newlist = realloc (*bkpts, ++nbkpts * sizeof newlist[0]);
192        if (newlist == NULL)
193 @@ -80,7 +80,7 @@
194      }
195  
196    /* Fallback result, break at the entrypc/lowpc value.  */
197 -  inline int entrypc_bkpt (void)
198 +  __gnu_inline int entrypc_bkpt (void)
199      {
200        Dwarf_Addr pc;
201        return INTUSE(dwarf_entrypc) (die, &pc) < 0 ? -1 : add_bkpt (pc);
202 @@ -107,7 +107,7 @@
203    /* Search a contiguous PC range for prologue-end markers.
204       If DWARF, look for proper markers.
205       Failing that, if ADHOC, look for the ad hoc convention.  */
206 -  inline int search_range (Dwarf_Addr low, Dwarf_Addr high,
207 +  __gnu_inline int search_range (Dwarf_Addr low, Dwarf_Addr high,
208                            bool dwarf, bool adhoc)
209      {
210        size_t l = 0, u = nlines;
211 --- elfutils-0.128/src/strip.c.orig     2007-06-12 18:45:38.970901000 +0200
212 +++ elfutils-0.128/src/strip.c  2007-06-12 18:50:29.145070719 +0200
213 @@ -1336,7 +1336,7 @@
214           /* Update section headers when the data size has changed.
215              We also update the SHT_NOBITS section in the debug
216              file so that the section headers match in sh_size.  */
217 -         inline void update_section_size (const Elf_Data *newdata)
218 +         __gnu_inline void update_section_size (const Elf_Data *newdata)
219             {
220               GElf_Shdr shdr_mem;
221               GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
222 --- elfutils-0.128/src/unstrip.c.orig   2007-06-06 01:44:33.000000000 +0200
223 +++ elfutils-0.128/src/unstrip.c        2007-06-12 18:51:03.570085226 +0200
224 @@ -371,7 +371,7 @@
225  {
226    Elf_Data *data = elf_getdata (outscn, NULL);
227  
228 -  inline void adjust_reloc (GElf_Xword *info)
229 +  __gnu_inline void adjust_reloc (GElf_Xword *info)
230      {
231        size_t ndx = GELF_R_SYM (*info);
232        if (ndx != STN_UNDEF)
233 @@ -988,7 +988,7 @@
234      }
235  
236    bool fail = false;
237 -  inline void check_match (bool match, Elf_Scn *scn, const char *name)
238 +  __gnu_inline void check_match (bool match, Elf_Scn *scn, const char *name)
239      {
240        if (!match)
241         {
242 @@ -1147,7 +1147,7 @@
243      }
244  
245    /* Locate a matching unallocated section in SECTIONS.  */
246 -  inline struct section *find_unalloc_section (const GElf_Shdr *shdr,
247 +  __gnu_inline struct section *find_unalloc_section (const GElf_Shdr *shdr,
248                                                const char *name)
249      {
250        size_t l = nalloc, u = stripped_shnum - 1;
251 @@ -1983,7 +1983,7 @@
252  handle_implicit_modules (const struct arg_info *info)
253  {
254    struct match_module_info mmi = { info->args, NULL, info->match_files };
255 -  inline ptrdiff_t next (ptrdiff_t offset)
256 +  __gnu_inline ptrdiff_t next (ptrdiff_t offset)
257      {
258        return dwfl_getmodules (info->dwfl, &match_module, &mmi, offset);
259      }
This page took 0.10177 seconds and 3 git commands to generate.