Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 140287 Details for
Bug 204610
dev-libs/elfutils-0.131 -std=gnu99 inline issues
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
elfutils-0.131-gcc-4.3-inline.patch
elfutils-0.131-gcc-4.3-inline.patch (text/plain), 11.08 KB, created by
Ryan Hill (RETIRED)
on 2008-01-06 16:24:14 UTC
(
hide
)
Description:
elfutils-0.131-gcc-4.3-inline.patch
Filename:
MIME Type:
Creator:
Ryan Hill (RETIRED)
Created:
2008-01-06 16:24:14 UTC
Size:
11.08 KB
patch
obsolete
>diff -Naur elfutils-0.131-orig/backends/ia64_retval.c elfutils-0.131/backends/ia64_retval.c >--- elfutils-0.131-orig/backends/ia64_retval.c 2007-09-27 16:26:10.000000000 -0600 >+++ elfutils-0.131/backends/ia64_retval.c 2008-01-06 09:55:14.000000000 -0600 >@@ -96,7 +96,7 @@ > If we find a datum that's not the same FP type as the first datum, punt. > If we count more than eight total homogeneous FP data, punt. */ > >- inline int hfa (const Dwarf_Op *loc, int nregs) >+ __gnu_inline int hfa (const Dwarf_Op *loc, int nregs) > { > if (fpregs_used == 0) > *locp = loc; >diff -Naur elfutils-0.131-orig/libdw/dwarf_entry_breakpoints.c elfutils-0.131/libdw/dwarf_entry_breakpoints.c >--- elfutils-0.131-orig/libdw/dwarf_entry_breakpoints.c 2007-06-05 17:23:46.000000000 -0600 >+++ elfutils-0.131/libdw/dwarf_entry_breakpoints.c 2008-01-06 09:59:32.000000000 -0600 >@@ -64,7 +64,7 @@ > *bkpts = NULL; > > /* Add one breakpoint location to the result vector. */ >- inline int add_bkpt (Dwarf_Addr pc) >+ __gnu_inline int add_bkpt (Dwarf_Addr pc) > { > Dwarf_Addr *newlist = realloc (*bkpts, ++nbkpts * sizeof newlist[0]); > if (newlist == NULL) >@@ -80,7 +80,7 @@ > } > > /* Fallback result, break at the entrypc/lowpc value. */ >- inline int entrypc_bkpt (void) >+ __gnu_inline int entrypc_bkpt (void) > { > Dwarf_Addr pc; > return INTUSE(dwarf_entrypc) (die, &pc) < 0 ? -1 : add_bkpt (pc); >@@ -107,7 +107,7 @@ > /* Search a contiguous PC range for prologue-end markers. > If DWARF, look for proper markers. > Failing that, if ADHOC, look for the ad hoc convention. */ >- inline int search_range (Dwarf_Addr low, Dwarf_Addr high, >+ __gnu_inline int search_range (Dwarf_Addr low, Dwarf_Addr high, > bool dwarf, bool adhoc) > { > size_t l = 0, u = nlines; >diff -Naur elfutils-0.131-orig/libdw/dwarf_getscopevar.c elfutils-0.131/libdw/dwarf_getscopevar.c >--- elfutils-0.131-orig/libdw/dwarf_getscopevar.c 2007-06-05 17:23:46.000000000 -0600 >+++ elfutils-0.131/libdw/dwarf_getscopevar.c 2008-01-06 10:01:35.000000000 -0600 >@@ -93,7 +93,7 @@ > size_t match_file_len = match_file == NULL ? 0 : strlen (match_file); > bool lastfile_matches = false; > const char *lastfile = NULL; >- inline bool file_matches (Dwarf_Files *files, size_t idx) >+ __gnu_inline bool file_matches (Dwarf_Files *files, size_t idx) > { > if (idx >= files->nfiles) > return false; >diff -Naur elfutils-0.131-orig/libdw/libdw.h elfutils-0.131/libdw/libdw.h >--- elfutils-0.131-orig/libdw/libdw.h 2007-11-11 13:29:00.000000000 -0600 >+++ elfutils-0.131/libdw/libdw.h 2008-01-06 10:17:07.000000000 -0600 >@@ -633,6 +633,12 @@ > > /* Inline optimizations. */ > #ifdef __OPTIMIZE__ >+# if defined(__GNUC_STDC_INLINE__) || defined(__GNUC_GNU_INLINE__) >+# define __gnu_inline inline __attribute__ ((__gnu_inline__)) >+# else >+# define __gnu_inline inline >+# endif >+ > /* Return attribute code of given attribute. */ > __libdw_extern_inline unsigned int > dwarf_whatattr (Dwarf_Attribute *attr) >diff -Naur elfutils-0.131-orig/libdw/libdw_visit_scopes.c elfutils-0.131/libdw/libdw_visit_scopes.c >--- elfutils-0.131-orig/libdw/libdw_visit_scopes.c 2007-10-03 00:14:48.000000000 -0600 >+++ elfutils-0.131/libdw/libdw_visit_scopes.c 2008-01-06 10:00:35.000000000 -0600 >@@ -109,7 +109,7 @@ > if (INTUSE(dwarf_child) (&root->die, &child.die) != 0) > return -1; > >- inline int recurse (void) >+ __gnu_inline int recurse (void) > { > return __libdw_visit_scopes (depth + 1, &child, > previsit, postvisit, arg); >diff -Naur elfutils-0.131-orig/libdwfl/argp-std.c elfutils-0.131/libdwfl/argp-std.c >--- elfutils-0.131-orig/libdwfl/argp-std.c 2007-06-05 17:23:46.000000000 -0600 >+++ elfutils-0.131/libdwfl/argp-std.c 2008-01-06 10:05:30.000000000 -0600 >@@ -106,7 +106,7 @@ > static error_t > parse_opt (int key, char *arg, struct argp_state *state) > { >- inline void failure (Dwfl *dwfl, int errnum, const char *msg) >+ __gnu_inline void failure (Dwfl *dwfl, int errnum, const char *msg) > { > if (errnum == -1) > argp_failure (state, EXIT_FAILURE, 0, "%s: %s", >@@ -116,7 +116,7 @@ > if (dwfl != NULL) > dwfl_end (dwfl); > } >- inline error_t fail (Dwfl *dwfl, int errnum, const char *msg) >+ __gnu_inline error_t fail (Dwfl *dwfl, int errnum, const char *msg) > { > failure (dwfl, errnum, msg); > return errnum == -1 ? EIO : errnum; >diff -Naur elfutils-0.131-orig/libdwfl/dwfl_module_addrsym.c elfutils-0.131/libdwfl/dwfl_module_addrsym.c >--- elfutils-0.131-orig/libdwfl/dwfl_module_addrsym.c 2007-09-27 16:26:10.000000000 -0600 >+++ elfutils-0.131/libdwfl/dwfl_module_addrsym.c 2008-01-06 10:04:57.000000000 -0600 >@@ -59,7 +59,7 @@ > > /* Return true iff we consider ADDR to lie in the same section as SYM. */ > GElf_Word addr_shndx = SHN_UNDEF; >- inline bool same_section (const GElf_Sym *sym, GElf_Word shndx) >+ __gnu_inline bool same_section (const GElf_Sym *sym, GElf_Word shndx) > { > /* For absolute symbols and the like, only match exactly. */ > if (shndx >= SHN_LORESERVE) >diff -Naur elfutils-0.131-orig/libdwfl/dwfl_module_getsrc_file.c elfutils-0.131/libdwfl/dwfl_module_getsrc_file.c >--- elfutils-0.131-orig/libdwfl/dwfl_module_getsrc_file.c 2007-06-05 17:23:46.000000000 -0600 >+++ elfutils-0.131/libdwfl/dwfl_module_getsrc_file.c 2008-01-06 09:53:54.000000000 -0600 >@@ -79,15 +79,15 @@ > && cu != NULL > && (error = __libdwfl_cu_getsrclines (cu)) == DWFL_E_NOERROR) > { >- inline const char *INTUSE(dwarf_line_file) (const Dwarf_Line *line) >+ __gnu_inline const char *INTUSE(dwarf_line_file) (const Dwarf_Line *line) > { > return line->files->info[line->file].name; > } >- inline Dwarf_Line *dwfl_line (const Dwfl_Line *line) >+ __gnu_inline Dwarf_Line *dwfl_line (const Dwfl_Line *line) > { > return &dwfl_linecu (line)->die.cu->lines->info[line->idx]; > } >- inline const char *dwfl_line_file (const Dwfl_Line *line) >+ __gnu_inline const char *dwfl_line_file (const Dwfl_Line *line) > { > return INTUSE(dwarf_line_file) (dwfl_line (line)); > } >diff -Naur elfutils-0.131-orig/libdwfl/elf-from-memory.c elfutils-0.131/libdwfl/elf-from-memory.c >--- elfutils-0.131-orig/libdwfl/elf-from-memory.c 2007-08-14 16:28:27.000000000 -0600 >+++ elfutils-0.131/libdwfl/elf-from-memory.c 2008-01-06 10:07:30.000000000 -0600 >@@ -216,7 +216,7 @@ > bool found_base = false; > switch (ehdr.e32.e_ident[EI_CLASS]) > { >- inline void handle_segment (GElf_Addr vaddr, GElf_Off offset, >+ __gnu_inline void handle_segment (GElf_Addr vaddr, GElf_Off offset, > GElf_Xword filesz, GElf_Xword align) > { > GElf_Off segment_end = ((offset + filesz + align - 1) & -align); >@@ -280,7 +280,7 @@ > > switch (ehdr.e32.e_ident[EI_CLASS]) > { >- inline bool handle_segment (GElf_Addr vaddr, GElf_Off offset, >+ __gnu_inline bool handle_segment (GElf_Addr vaddr, GElf_Off offset, > GElf_Xword filesz, GElf_Xword align) > { > GElf_Off start = offset & -align; >diff -Naur elfutils-0.131-orig/libdwfl/linux-kernel-modules.c elfutils-0.131/libdwfl/linux-kernel-modules.c >--- elfutils-0.131-orig/libdwfl/linux-kernel-modules.c 2007-11-11 13:29:00.000000000 -0600 >+++ elfutils-0.131/libdwfl/linux-kernel-modules.c 2008-01-06 10:06:45.000000000 -0600 >@@ -541,7 +541,7 @@ > { > Dwarf_Addr start; > Dwarf_Addr end; >- inline Dwfl_Module *report (void) >+ __gnu_inline Dwfl_Module *report (void) > { > return INTUSE(dwfl_report_module) (dwfl, KERNEL_MODNAME, start, end); > } >@@ -628,7 +628,7 @@ > only '_' and one only using '-'. */ > > char alternate_name[namelen + 1]; >- inline bool subst_name (char from, char to) >+ __gnu_inline bool subst_name (char from, char to) > { > const char *n = memchr (module_name, from, namelen); > if (n == NULL) >diff -Naur elfutils-0.131-orig/libdwfl/linux-proc-maps.c elfutils-0.131/libdwfl/linux-proc-maps.c >--- elfutils-0.131-orig/libdwfl/linux-proc-maps.c 2007-06-05 17:23:46.000000000 -0600 >+++ elfutils-0.131/libdwfl/linux-proc-maps.c 2008-01-06 10:06:04.000000000 -0600 >@@ -134,7 +134,7 @@ > char *last_file = NULL; > Dwarf_Addr low = 0, high = 0; > >- inline bool report (void) >+ __gnu_inline bool report (void) > { > if (last_file != NULL) > { >diff -Naur elfutils-0.131-orig/src/ld.h elfutils-0.131/src/ld.h >--- elfutils-0.131-orig/src/ld.h 2007-06-05 17:23:47.000000000 -0600 >+++ elfutils-0.131/src/ld.h 2008-01-06 09:53:02.000000000 -0600 >@@ -1087,7 +1087,7 @@ > > /* Checked whether the symbol is undefined and referenced from a DSO. */ > extern bool linked_from_dso_p (struct scninfo *scninfo, size_t symidx); >-extern inline bool >+extern __gnu_inline bool > linked_from_dso_p (struct scninfo *scninfo, size_t symidx) > { > struct usedfiles *file = scninfo->fileinfo; >diff -Naur elfutils-0.131-orig/src/readelf.c elfutils-0.131/src/readelf.c >--- elfutils-0.131-orig/src/readelf.c 2008-01-06 09:50:26.000000000 -0600 >+++ elfutils-0.131/src/readelf.c 2008-01-06 10:10:57.000000000 -0600 >@@ -5722,7 +5722,7 @@ > qsort (regs, maxreg + 1, sizeof regs[0], &compare_registers); > > /* Collect the unique sets and sort them. */ >- inline bool same_set (const struct register_info *a, >+ __gnu_inline bool same_set (const struct register_info *a, > const struct register_info *b) > { > return (a < ®s[maxnreg] && a->regloc != NULL >diff -Naur elfutils-0.131-orig/src/strip.c elfutils-0.131/src/strip.c >--- elfutils-0.131-orig/src/strip.c 2008-01-06 09:50:26.000000000 -0600 >+++ elfutils-0.131/src/strip.c 2008-01-06 10:09:22.000000000 -0600 >@@ -1336,7 +1336,7 @@ > /* Update section headers when the data size has changed. > We also update the SHT_NOBITS section in the debug > file so that the section headers match in sh_size. */ >- inline void update_section_size (const Elf_Data *newdata) >+ __gnu_inline void update_section_size (const Elf_Data *newdata) > { > GElf_Shdr shdr_mem; > GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); >diff -Naur elfutils-0.131-orig/src/unstrip.c elfutils-0.131/src/unstrip.c >--- elfutils-0.131-orig/src/unstrip.c 2007-11-11 13:29:00.000000000 -0600 >+++ elfutils-0.131/src/unstrip.c 2008-01-06 10:09:59.000000000 -0600 >@@ -389,7 +389,7 @@ > { > Elf_Data *data = elf_getdata (outscn, NULL); > >- inline void adjust_reloc (GElf_Xword *info) >+ __gnu_inline void adjust_reloc (GElf_Xword *info) > { > size_t ndx = GELF_R_SYM (*info); > if (ndx != STN_UNDEF) >@@ -1039,7 +1039,7 @@ > } > > bool fail = false; >- inline void check_match (bool match, Elf_Scn *scn, const char *name) >+ __gnu_inline void check_match (bool match, Elf_Scn *scn, const char *name) > { > if (!match) > { >@@ -1267,7 +1267,7 @@ > } > > /* Locate a matching unallocated section in SECTIONS. */ >- inline struct section *find_unalloc_section (const GElf_Shdr *shdr, >+ __gnu_inline struct section *find_unalloc_section (const GElf_Shdr *shdr, > const char *name) > { > size_t l = nalloc, u = stripped_shnum - 1; >@@ -2182,7 +2182,7 @@ > handle_implicit_modules (const struct arg_info *info) > { > struct match_module_info mmi = { info->args, NULL, info->match_files }; >- inline ptrdiff_t next (ptrdiff_t offset) >+ __gnu_inline ptrdiff_t next (ptrdiff_t offset) > { > return dwfl_getmodules (info->dwfl, &match_module, &mmi, offset); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 204610
: 140287