Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 204610
Collapse All | Expand All

(-)elfutils-0.131-orig/backends/ia64_retval.c (-1 / +1 lines)
Lines 96-102 Link Here
96
     If we find a datum that's not the same FP type as the first datum, punt.
96
     If we find a datum that's not the same FP type as the first datum, punt.
97
     If we count more than eight total homogeneous FP data, punt.  */
97
     If we count more than eight total homogeneous FP data, punt.  */
98
98
99
  inline int hfa (const Dwarf_Op *loc, int nregs)
99
  __gnu_inline int hfa (const Dwarf_Op *loc, int nregs)
100
    {
100
    {
101
      if (fpregs_used == 0)
101
      if (fpregs_used == 0)
102
	*locp = loc;
102
	*locp = loc;
(-)elfutils-0.131-orig/libdw/dwarf_entry_breakpoints.c (-3 / +3 lines)
Lines 64-70 Link Here
64
  *bkpts = NULL;
64
  *bkpts = NULL;
65
65
66
  /* Add one breakpoint location to the result vector.  */
66
  /* Add one breakpoint location to the result vector.  */
67
  inline int add_bkpt (Dwarf_Addr pc)
67
  __gnu_inline int add_bkpt (Dwarf_Addr pc)
68
    {
68
    {
69
      Dwarf_Addr *newlist = realloc (*bkpts, ++nbkpts * sizeof newlist[0]);
69
      Dwarf_Addr *newlist = realloc (*bkpts, ++nbkpts * sizeof newlist[0]);
70
      if (newlist == NULL)
70
      if (newlist == NULL)
Lines 80-86 Link Here
80
    }
80
    }
81
81
82
  /* Fallback result, break at the entrypc/lowpc value.  */
82
  /* Fallback result, break at the entrypc/lowpc value.  */
83
  inline int entrypc_bkpt (void)
83
  __gnu_inline int entrypc_bkpt (void)
84
    {
84
    {
85
      Dwarf_Addr pc;
85
      Dwarf_Addr pc;
86
      return INTUSE(dwarf_entrypc) (die, &pc) < 0 ? -1 : add_bkpt (pc);
86
      return INTUSE(dwarf_entrypc) (die, &pc) < 0 ? -1 : add_bkpt (pc);
Lines 107-113 Link Here
107
  /* Search a contiguous PC range for prologue-end markers.
107
  /* Search a contiguous PC range for prologue-end markers.
108
     If DWARF, look for proper markers.
108
     If DWARF, look for proper markers.
109
     Failing that, if ADHOC, look for the ad hoc convention.  */
109
     Failing that, if ADHOC, look for the ad hoc convention.  */
110
  inline int search_range (Dwarf_Addr low, Dwarf_Addr high,
110
  __gnu_inline int search_range (Dwarf_Addr low, Dwarf_Addr high,
111
			   bool dwarf, bool adhoc)
111
			   bool dwarf, bool adhoc)
112
    {
112
    {
113
      size_t l = 0, u = nlines;
113
      size_t l = 0, u = nlines;
(-)elfutils-0.131-orig/libdw/dwarf_getscopevar.c (-1 / +1 lines)
Lines 93-99 Link Here
93
  size_t match_file_len = match_file == NULL ? 0 : strlen (match_file);
93
  size_t match_file_len = match_file == NULL ? 0 : strlen (match_file);
94
  bool lastfile_matches = false;
94
  bool lastfile_matches = false;
95
  const char *lastfile = NULL;
95
  const char *lastfile = NULL;
96
  inline bool file_matches (Dwarf_Files *files, size_t idx)
96
  __gnu_inline bool file_matches (Dwarf_Files *files, size_t idx)
97
    {
97
    {
98
      if (idx >= files->nfiles)
98
      if (idx >= files->nfiles)
99
	return false;
99
	return false;
(-)elfutils-0.131-orig/libdw/libdw.h (+6 lines)
Lines 633-638 Link Here
633
633
634
/* Inline optimizations.  */
634
/* Inline optimizations.  */
635
#ifdef __OPTIMIZE__
635
#ifdef __OPTIMIZE__
636
# if defined(__GNUC_STDC_INLINE__) || defined(__GNUC_GNU_INLINE__)
637
#  define __gnu_inline inline __attribute__ ((__gnu_inline__))
638
# else
639
#  define __gnu_inline inline
640
# endif
641
636
/* Return attribute code of given attribute.  */
642
/* Return attribute code of given attribute.  */
637
__libdw_extern_inline unsigned int
643
__libdw_extern_inline unsigned int
638
dwarf_whatattr (Dwarf_Attribute *attr)
644
dwarf_whatattr (Dwarf_Attribute *attr)
(-)elfutils-0.131-orig/libdw/libdw_visit_scopes.c (-1 / +1 lines)
Lines 109-115 Link Here
109
  if (INTUSE(dwarf_child) (&root->die, &child.die) != 0)
109
  if (INTUSE(dwarf_child) (&root->die, &child.die) != 0)
110
    return -1;
110
    return -1;
111
111
112
  inline int recurse (void)
112
  __gnu_inline int recurse (void)
113
    {
113
    {
114
      return __libdw_visit_scopes (depth + 1, &child,
114
      return __libdw_visit_scopes (depth + 1, &child,
115
				   previsit, postvisit, arg);
115
				   previsit, postvisit, arg);
(-)elfutils-0.131-orig/libdwfl/argp-std.c (-2 / +2 lines)
Lines 106-112 Link Here
106
static error_t
106
static error_t
107
parse_opt (int key, char *arg, struct argp_state *state)
107
parse_opt (int key, char *arg, struct argp_state *state)
108
{
108
{
109
  inline void failure (Dwfl *dwfl, int errnum, const char *msg)
109
  __gnu_inline void failure (Dwfl *dwfl, int errnum, const char *msg)
110
    {
110
    {
111
      if (errnum == -1)
111
      if (errnum == -1)
112
	argp_failure (state, EXIT_FAILURE, 0, "%s: %s",
112
	argp_failure (state, EXIT_FAILURE, 0, "%s: %s",
Lines 116-122 Link Here
116
      if (dwfl != NULL)
116
      if (dwfl != NULL)
117
	dwfl_end (dwfl);
117
	dwfl_end (dwfl);
118
    }
118
    }
119
  inline error_t fail (Dwfl *dwfl, int errnum, const char *msg)
119
  __gnu_inline error_t fail (Dwfl *dwfl, int errnum, const char *msg)
120
    {
120
    {
121
      failure (dwfl, errnum, msg);
121
      failure (dwfl, errnum, msg);
122
      return errnum == -1 ? EIO : errnum;
122
      return errnum == -1 ? EIO : errnum;
(-)elfutils-0.131-orig/libdwfl/dwfl_module_addrsym.c (-1 / +1 lines)
Lines 59-65 Link Here
59
59
60
  /* Return true iff we consider ADDR to lie in the same section as SYM.  */
60
  /* Return true iff we consider ADDR to lie in the same section as SYM.  */
61
  GElf_Word addr_shndx = SHN_UNDEF;
61
  GElf_Word addr_shndx = SHN_UNDEF;
62
  inline bool same_section (const GElf_Sym *sym, GElf_Word shndx)
62
  __gnu_inline bool same_section (const GElf_Sym *sym, GElf_Word shndx)
63
    {
63
    {
64
      /* For absolute symbols and the like, only match exactly.  */
64
      /* For absolute symbols and the like, only match exactly.  */
65
      if (shndx >= SHN_LORESERVE)
65
      if (shndx >= SHN_LORESERVE)
(-)elfutils-0.131-orig/libdwfl/dwfl_module_getsrc_file.c (-3 / +3 lines)
Lines 79-93 Link Here
79
	 && cu != NULL
79
	 && cu != NULL
80
	 && (error = __libdwfl_cu_getsrclines (cu)) == DWFL_E_NOERROR)
80
	 && (error = __libdwfl_cu_getsrclines (cu)) == DWFL_E_NOERROR)
81
    {
81
    {
82
      inline const char *INTUSE(dwarf_line_file) (const Dwarf_Line *line)
82
      __gnu_inline const char *INTUSE(dwarf_line_file) (const Dwarf_Line *line)
83
	{
83
	{
84
	  return line->files->info[line->file].name;
84
	  return line->files->info[line->file].name;
85
	}
85
	}
86
      inline Dwarf_Line *dwfl_line (const Dwfl_Line *line)
86
      __gnu_inline Dwarf_Line *dwfl_line (const Dwfl_Line *line)
87
	{
87
	{
88
	  return &dwfl_linecu (line)->die.cu->lines->info[line->idx];
88
	  return &dwfl_linecu (line)->die.cu->lines->info[line->idx];
89
	}
89
	}
90
      inline const char *dwfl_line_file (const Dwfl_Line *line)
90
      __gnu_inline const char *dwfl_line_file (const Dwfl_Line *line)
91
	{
91
	{
92
	  return INTUSE(dwarf_line_file) (dwfl_line (line));
92
	  return INTUSE(dwarf_line_file) (dwfl_line (line));
93
	}
93
	}
(-)elfutils-0.131-orig/libdwfl/elf-from-memory.c (-2 / +2 lines)
Lines 216-222 Link Here
216
  bool found_base = false;
216
  bool found_base = false;
217
  switch (ehdr.e32.e_ident[EI_CLASS])
217
  switch (ehdr.e32.e_ident[EI_CLASS])
218
    {
218
    {
219
      inline void handle_segment (GElf_Addr vaddr, GElf_Off offset,
219
      __gnu_inline void handle_segment (GElf_Addr vaddr, GElf_Off offset,
220
				  GElf_Xword filesz, GElf_Xword align)
220
				  GElf_Xword filesz, GElf_Xword align)
221
	{
221
	{
222
	  GElf_Off segment_end = ((offset + filesz + align - 1) & -align);
222
	  GElf_Off segment_end = ((offset + filesz + align - 1) & -align);
Lines 280-286 Link Here
280
280
281
  switch (ehdr.e32.e_ident[EI_CLASS])
281
  switch (ehdr.e32.e_ident[EI_CLASS])
282
    {
282
    {
283
      inline bool handle_segment (GElf_Addr vaddr, GElf_Off offset,
283
      __gnu_inline bool handle_segment (GElf_Addr vaddr, GElf_Off offset,
284
				  GElf_Xword filesz, GElf_Xword align)
284
				  GElf_Xword filesz, GElf_Xword align)
285
	{
285
	{
286
	  GElf_Off start = offset & -align;
286
	  GElf_Off start = offset & -align;
(-)elfutils-0.131-orig/libdwfl/linux-kernel-modules.c (-2 / +2 lines)
Lines 541-547 Link Here
541
{
541
{
542
  Dwarf_Addr start;
542
  Dwarf_Addr start;
543
  Dwarf_Addr end;
543
  Dwarf_Addr end;
544
  inline Dwfl_Module *report (void)
544
  __gnu_inline Dwfl_Module *report (void)
545
    {
545
    {
546
      return INTUSE(dwfl_report_module) (dwfl, KERNEL_MODNAME, start, end);
546
      return INTUSE(dwfl_report_module) (dwfl, KERNEL_MODNAME, start, end);
547
    }
547
    }
Lines 628-634 Link Here
628
     only '_' and one only using '-'.  */
628
     only '_' and one only using '-'.  */
629
629
630
  char alternate_name[namelen + 1];
630
  char alternate_name[namelen + 1];
631
  inline bool subst_name (char from, char to)
631
  __gnu_inline bool subst_name (char from, char to)
632
    {
632
    {
633
      const char *n = memchr (module_name, from, namelen);
633
      const char *n = memchr (module_name, from, namelen);
634
      if (n == NULL)
634
      if (n == NULL)
(-)elfutils-0.131-orig/libdwfl/linux-proc-maps.c (-1 / +1 lines)
Lines 134-140 Link Here
134
  char *last_file = NULL;
134
  char *last_file = NULL;
135
  Dwarf_Addr low = 0, high = 0;
135
  Dwarf_Addr low = 0, high = 0;
136
136
137
  inline bool report (void)
137
  __gnu_inline bool report (void)
138
    {
138
    {
139
      if (last_file != NULL)
139
      if (last_file != NULL)
140
	{
140
	{
(-)elfutils-0.131-orig/src/ld.h (-1 / +1 lines)
Lines 1087-1093 Link Here
1087
1087
1088
/* Checked whether the symbol is undefined and referenced from a DSO.  */
1088
/* Checked whether the symbol is undefined and referenced from a DSO.  */
1089
extern bool linked_from_dso_p (struct scninfo *scninfo, size_t symidx);
1089
extern bool linked_from_dso_p (struct scninfo *scninfo, size_t symidx);
1090
extern inline bool
1090
extern __gnu_inline bool
1091
linked_from_dso_p (struct scninfo *scninfo, size_t symidx)
1091
linked_from_dso_p (struct scninfo *scninfo, size_t symidx)
1092
{
1092
{
1093
  struct usedfiles *file = scninfo->fileinfo;
1093
  struct usedfiles *file = scninfo->fileinfo;
(-)elfutils-0.131-orig/src/readelf.c (-1 / +1 lines)
Lines 5722-5728 Link Here
5722
  qsort (regs, maxreg + 1, sizeof regs[0], &compare_registers);
5722
  qsort (regs, maxreg + 1, sizeof regs[0], &compare_registers);
5723
5723
5724
  /* Collect the unique sets and sort them.  */
5724
  /* Collect the unique sets and sort them.  */
5725
  inline bool same_set (const struct register_info *a,
5725
  __gnu_inline bool same_set (const struct register_info *a,
5726
			const struct register_info *b)
5726
			const struct register_info *b)
5727
  {
5727
  {
5728
    return (a < &regs[maxnreg] && a->regloc != NULL
5728
    return (a < &regs[maxnreg] && a->regloc != NULL
(-)elfutils-0.131-orig/src/strip.c (-1 / +1 lines)
Lines 1336-1342 Link Here
1336
	  /* Update section headers when the data size has changed.
1336
	  /* Update section headers when the data size has changed.
1337
	     We also update the SHT_NOBITS section in the debug
1337
	     We also update the SHT_NOBITS section in the debug
1338
	     file so that the section headers match in sh_size.  */
1338
	     file so that the section headers match in sh_size.  */
1339
	  inline void update_section_size (const Elf_Data *newdata)
1339
	  __gnu_inline void update_section_size (const Elf_Data *newdata)
1340
	    {
1340
	    {
1341
	      GElf_Shdr shdr_mem;
1341
	      GElf_Shdr shdr_mem;
1342
	      GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
1342
	      GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
(-)elfutils-0.131-orig/src/unstrip.c (-4 / +4 lines)
Lines 389-395 Link Here
389
{
389
{
390
  Elf_Data *data = elf_getdata (outscn, NULL);
390
  Elf_Data *data = elf_getdata (outscn, NULL);
391
391
392
  inline void adjust_reloc (GElf_Xword *info)
392
  __gnu_inline void adjust_reloc (GElf_Xword *info)
393
    {
393
    {
394
      size_t ndx = GELF_R_SYM (*info);
394
      size_t ndx = GELF_R_SYM (*info);
395
      if (ndx != STN_UNDEF)
395
      if (ndx != STN_UNDEF)
Lines 1039-1045 Link Here
1039
    }
1039
    }
1040
1040
1041
  bool fail = false;
1041
  bool fail = false;
1042
  inline void check_match (bool match, Elf_Scn *scn, const char *name)
1042
  __gnu_inline void check_match (bool match, Elf_Scn *scn, const char *name)
1043
    {
1043
    {
1044
      if (!match)
1044
      if (!match)
1045
	{
1045
	{
Lines 1267-1273 Link Here
1267
    }
1267
    }
1268
1268
1269
  /* Locate a matching unallocated section in SECTIONS.  */
1269
  /* Locate a matching unallocated section in SECTIONS.  */
1270
  inline struct section *find_unalloc_section (const GElf_Shdr *shdr,
1270
  __gnu_inline struct section *find_unalloc_section (const GElf_Shdr *shdr,
1271
					       const char *name)
1271
					       const char *name)
1272
    {
1272
    {
1273
      size_t l = nalloc, u = stripped_shnum - 1;
1273
      size_t l = nalloc, u = stripped_shnum - 1;
Lines 2182-2188 Link Here
2182
handle_implicit_modules (const struct arg_info *info)
2182
handle_implicit_modules (const struct arg_info *info)
2183
{
2183
{
2184
  struct match_module_info mmi = { info->args, NULL, info->match_files };
2184
  struct match_module_info mmi = { info->args, NULL, info->match_files };
2185
  inline ptrdiff_t next (ptrdiff_t offset)
2185
  __gnu_inline ptrdiff_t next (ptrdiff_t offset)
2186
    {
2186
    {
2187
      return dwfl_getmodules (info->dwfl, &match_module, &mmi, offset);
2187
      return dwfl_getmodules (info->dwfl, &match_module, &mmi, offset);
2188
    }
2188
    }

Return to bug 204610