View | Details | Raw Unified
Collapse All | Expand All

(-) elfutils-0.131-orig/backends/ia64_retval.c (-1 / +1 lines)
 Lines 96-102    Link Here 
     If we find a datum that's not the same FP type as the first datum, punt.
     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.  */
     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)
      if (fpregs_used == 0)
	*locp = loc;
	*locp = loc;
(-) elfutils-0.131-orig/libdw/dwarf_entry_breakpoints.c (-3 / +3 lines)
 Lines 64-70    Link Here 
  *bkpts = NULL;
  *bkpts = NULL;
  /* Add one breakpoint location to the result vector.  */
  /* 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]);
      Dwarf_Addr *newlist = realloc (*bkpts, ++nbkpts * sizeof newlist[0]);
      if (newlist == NULL)
      if (newlist == NULL)
 Lines 80-86    Link Here 
    }
    }
  /* Fallback result, break at the entrypc/lowpc value.  */
  /* Fallback result, break at the entrypc/lowpc value.  */
  inline int entrypc_bkpt (void)
  __gnu_inline int entrypc_bkpt (void)
    {
    {
      Dwarf_Addr pc;
      Dwarf_Addr pc;
      return INTUSE(dwarf_entrypc) (die, &pc) < 0 ? -1 : add_bkpt (pc);
      return INTUSE(dwarf_entrypc) (die, &pc) < 0 ? -1 : add_bkpt (pc);
 Lines 107-113    Link Here 
  /* Search a contiguous PC range for prologue-end markers.
  /* Search a contiguous PC range for prologue-end markers.
     If DWARF, look for proper markers.
     If DWARF, look for proper markers.
     Failing that, if ADHOC, look for the ad hoc convention.  */
     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)
			   bool dwarf, bool adhoc)
    {
    {
      size_t l = 0, u = nlines;
      size_t l = 0, u = nlines;
(-) elfutils-0.131-orig/libdw/dwarf_getscopevar.c (-1 / +1 lines)
 Lines 93-99    Link Here 
  size_t match_file_len = match_file == NULL ? 0 : strlen (match_file);
  size_t match_file_len = match_file == NULL ? 0 : strlen (match_file);
  bool lastfile_matches = false;
  bool lastfile_matches = false;
  const char *lastfile = NULL;
  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)
      if (idx >= files->nfiles)
	return false;
	return false;
(-) elfutils-0.131-orig/libdw/libdw.h (+6 lines)
 Lines 633-638    Link Here 
/* Inline optimizations.  */
/* Inline optimizations.  */
#ifdef __OPTIMIZE__
#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.  */
/* Return attribute code of given attribute.  */
__libdw_extern_inline unsigned int
__libdw_extern_inline unsigned int
dwarf_whatattr (Dwarf_Attribute *attr)
dwarf_whatattr (Dwarf_Attribute *attr)
(-) elfutils-0.131-orig/libdw/libdw_visit_scopes.c (-1 / +1 lines)
 Lines 109-115    Link Here 
  if (INTUSE(dwarf_child) (&root->die, &child.die) != 0)
  if (INTUSE(dwarf_child) (&root->die, &child.die) != 0)
    return -1;
    return -1;
  inline int recurse (void)
  __gnu_inline int recurse (void)
    {
    {
      return __libdw_visit_scopes (depth + 1, &child,
      return __libdw_visit_scopes (depth + 1, &child,
				   previsit, postvisit, arg);
				   previsit, postvisit, arg);
(-) elfutils-0.131-orig/libdwfl/argp-std.c (-2 / +2 lines)
 Lines 106-112    Link Here 
static error_t
static error_t
parse_opt (int key, char *arg, struct argp_state *state)
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)
      if (errnum == -1)
	argp_failure (state, EXIT_FAILURE, 0, "%s: %s",
	argp_failure (state, EXIT_FAILURE, 0, "%s: %s",
 Lines 116-122    Link Here 
      if (dwfl != NULL)
      if (dwfl != NULL)
	dwfl_end (dwfl);
	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);
      failure (dwfl, errnum, msg);
      return errnum == -1 ? EIO : errnum;
      return errnum == -1 ? EIO : errnum;
(-) elfutils-0.131-orig/libdwfl/dwfl_module_addrsym.c (-1 / +1 lines)
 Lines 59-65    Link Here 
  /* Return true iff we consider ADDR to lie in the same section as SYM.  */
  /* Return true iff we consider ADDR to lie in the same section as SYM.  */
  GElf_Word addr_shndx = SHN_UNDEF;
  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.  */
      /* For absolute symbols and the like, only match exactly.  */
      if (shndx >= SHN_LORESERVE)
      if (shndx >= SHN_LORESERVE)
(-) elfutils-0.131-orig/libdwfl/dwfl_module_getsrc_file.c (-3 / +3 lines)
 Lines 79-93    Link Here 
	 && cu != NULL
	 && cu != NULL
	 && (error = __libdwfl_cu_getsrclines (cu)) == DWFL_E_NOERROR)
	 && (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;
	  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];
	  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));
	  return INTUSE(dwarf_line_file) (dwfl_line (line));
	}
	}
(-) elfutils-0.131-orig/libdwfl/elf-from-memory.c (-2 / +2 lines)
 Lines 216-222    Link Here 
  bool found_base = false;
  bool found_base = false;
  switch (ehdr.e32.e_ident[EI_CLASS])
  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_Xword filesz, GElf_Xword align)
	{
	{
	  GElf_Off segment_end = ((offset + filesz + align - 1) & -align);
	  GElf_Off segment_end = ((offset + filesz + align - 1) & -align);
 Lines 280-286    Link Here 
  switch (ehdr.e32.e_ident[EI_CLASS])
  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_Xword filesz, GElf_Xword align)
	{
	{
	  GElf_Off start = offset & -align;
	  GElf_Off start = offset & -align;
(-) elfutils-0.131-orig/libdwfl/linux-kernel-modules.c (-2 / +2 lines)
 Lines 541-547    Link Here 
{
{
  Dwarf_Addr start;
  Dwarf_Addr start;
  Dwarf_Addr end;
  Dwarf_Addr end;
  inline Dwfl_Module *report (void)
  __gnu_inline Dwfl_Module *report (void)
    {
    {
      return INTUSE(dwfl_report_module) (dwfl, KERNEL_MODNAME, start, end);
      return INTUSE(dwfl_report_module) (dwfl, KERNEL_MODNAME, start, end);
    }
    }
 Lines 628-634    Link Here 
     only '_' and one only using '-'.  */
     only '_' and one only using '-'.  */
  char alternate_name[namelen + 1];
  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);
      const char *n = memchr (module_name, from, namelen);
      if (n == NULL)
      if (n == NULL)
(-) elfutils-0.131-orig/libdwfl/linux-proc-maps.c (-1 / +1 lines)
 Lines 134-140    Link Here 
  char *last_file = NULL;
  char *last_file = NULL;
  Dwarf_Addr low = 0, high = 0;
  Dwarf_Addr low = 0, high = 0;
  inline bool report (void)
  __gnu_inline bool report (void)
    {
    {
      if (last_file != NULL)
      if (last_file != NULL)
	{
	{
(-) elfutils-0.131-orig/src/ld.h (-1 / +1 lines)
 Lines 1087-1093    Link Here 
/* Checked whether the symbol is undefined and referenced from a DSO.  */
/* Checked whether the symbol is undefined and referenced from a DSO.  */
extern bool linked_from_dso_p (struct scninfo *scninfo, size_t symidx);
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)
linked_from_dso_p (struct scninfo *scninfo, size_t symidx)
{
{
  struct usedfiles *file = scninfo->fileinfo;
  struct usedfiles *file = scninfo->fileinfo;
(-) elfutils-0.131-orig/src/readelf.c (-1 / +1 lines)
 Lines 5722-5728    Link Here 
  qsort (regs, maxreg + 1, sizeof regs[0], &compare_registers);
  qsort (regs, maxreg + 1, sizeof regs[0], &compare_registers);
  /* Collect the unique sets and sort them.  */
  /* 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)
			const struct register_info *b)
  {
  {
    return (a < &regs[maxnreg] && a->regloc != NULL
    return (a < &regs[maxnreg] && a->regloc != NULL
(-) elfutils-0.131-orig/src/strip.c (-1 / +1 lines)
 Lines 1336-1342    Link Here 
	  /* Update section headers when the data size has changed.
	  /* Update section headers when the data size has changed.
	     We also update the SHT_NOBITS section in the debug
	     We also update the SHT_NOBITS section in the debug
	     file so that the section headers match in sh_size.  */
	     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_mem;
	      GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
	      GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
(-) elfutils-0.131-orig/src/unstrip.c (-4 / +4 lines)
 Lines 389-395    Link Here 
{
{
  Elf_Data *data = elf_getdata (outscn, NULL);
  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);
      size_t ndx = GELF_R_SYM (*info);
      if (ndx != STN_UNDEF)
      if (ndx != STN_UNDEF)
 Lines 1039-1045    Link Here 
    }
    }
  bool fail = false;
  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)
      if (!match)
	{
	{
 Lines 1267-1273    Link Here 
    }
    }
  /* Locate a matching unallocated section in SECTIONS.  */
  /* 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)
					       const char *name)
    {
    {
      size_t l = nalloc, u = stripped_shnum - 1;
      size_t l = nalloc, u = stripped_shnum - 1;
 Lines 2182-2188    Link Here 
handle_implicit_modules (const struct arg_info *info)
handle_implicit_modules (const struct arg_info *info)
{
{
  struct match_module_info mmi = { info->args, NULL, info->match_files };
  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);
      return dwfl_getmodules (info->dwfl, &match_module, &mmi, offset);
    }
    }