]> git.ipfire.org Git - thirdparty/elfutils.git/commit
Properly mark all internal function definitions.
authorMark Wielaard <mjw@redhat.com>
Wed, 23 Sep 2015 18:44:06 +0000 (20:44 +0200)
committerMark Wielaard <mjw@redhat.com>
Wed, 23 Sep 2015 18:49:54 +0000 (20:49 +0200)
commitd8698e55cbe95e56c3a4cbd67c320048ea4f087a
treef244c37048ebdee1931e446b426ab66c839379a2
parent1ccdfb683ad6c7e59793136c3a657ddf131cafd1
Properly mark all internal function definitions.

Since we banned old style function definitions GCC is able to diagnose
function definitions that don't match the function declaration:

  elf32_getehdr.c:78: error: conflicting types for ‘__elf64_getehdr_wrlock’
  libelfP.h:498: note: previous declaration of ‘__elf64_getehdr_wrlock’

This happens on i386 because there internal functions are marked with:

  # define internal_function __attribute__ ((regparm (3), stdcall))

Make sure all internal function declarations and definitions are marked
with internal_function.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
17 files changed:
libasm/ChangeLog
libasm/asm_align.c
libasm/asm_end.c
libasm/asm_error.c
libdw/ChangeLog
libdw/dwarf_error.c
libdw/dwarf_formref.c
libdw/libdw_findcu.c
libdw/libdw_visit_scopes.c
libelf/ChangeLog
libelf/elf32_getehdr.c
libelf/elf32_getshdr.c
libelf/elf_error.c
libelf/elf_getphdrnum.c
libelf/elf_getshdrnum.c
libelf/elf_readall.c
libelf/gelf_getehdr.c