Skip to content
Snippets Groups Projects
  • Alan Modra's avatar
    4981a31d
    Use __func__ rather than __FUNCTION__ · 4981a31d
    Alan Modra authored
    We already use C99's __func__ in places, use it more generally.  This
    patch doesn't change uses in the testsuite.  I've also left one in
    gold.h that is protected by GCC_VERSION < 4003.  If any of the
    remaining uses bothers anyone I invite patches.
    
    bfd/
    	* bfd-in.h: Replace __FUNCTION__ with __func__.
    	* elf32-bfin.c: Likewise.
    	* elfnn-aarch64.c: Likewise.
    	* elfxx-sparc.c: Likewise.
    	* bfd-in2.h: Regenerate.
    gas/
    	* config/tc-cris.c: Replace __FUNCTION__ with __func__.
    	* config/tc-m68hc11.c: Likewise.
    	* config/tc-msp430.c: Likewise.
    gold/
    	* dwp.h: Replace __FUNCTION__ with __func__.
    	* gold.h: Likewise, except for use inside GCC_VERSION < 4003.
    ld/
    	* emultempl/pe.em: Replace __FUNCTION__ with __func__.
    	* emultempl/pep.em: Likewise.
    	* pe-dll.c: Likewise.
    4981a31d
    History
    Use __func__ rather than __FUNCTION__
    Alan Modra authored
    We already use C99's __func__ in places, use it more generally.  This
    patch doesn't change uses in the testsuite.  I've also left one in
    gold.h that is protected by GCC_VERSION < 4003.  If any of the
    remaining uses bothers anyone I invite patches.
    
    bfd/
    	* bfd-in.h: Replace __FUNCTION__ with __func__.
    	* elf32-bfin.c: Likewise.
    	* elfnn-aarch64.c: Likewise.
    	* elfxx-sparc.c: Likewise.
    	* bfd-in2.h: Regenerate.
    gas/
    	* config/tc-cris.c: Replace __FUNCTION__ with __func__.
    	* config/tc-m68hc11.c: Likewise.
    	* config/tc-msp430.c: Likewise.
    gold/
    	* dwp.h: Replace __FUNCTION__ with __func__.
    	* gold.h: Likewise, except for use inside GCC_VERSION < 4003.
    ld/
    	* emultempl/pe.em: Replace __FUNCTION__ with __func__.
    	* emultempl/pep.em: Likewise.
    	* pe-dll.c: Likewise.