summaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-01-12 16:46:23 +1030
committerAlan Modra <amodra@gmail.com>2023-01-12 17:20:21 +1030
commit4981a31d523de41713fc40aa8101b4d73d44df57 (patch)
tree17ff496b3e34113f137fe2b829cdba06a79ed2bc /ld/emultempl
parent2070fc67bad14bd12c722a7a6baffcafd55e862a (diff)
downloadbinutils-gdb-4981a31d523de41713fc40aa8101b4d73d44df57.tar.gz
Use __func__ rather than __FUNCTION__
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.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/pe.em4
-rw-r--r--ld/emultempl/pep.em4
2 files changed, 4 insertions, 4 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index 323724b84f5..0413d07d6c3 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -1188,7 +1188,7 @@ pe_fixup_stdcalls (void)
struct bfd_link_hash_entry *undef, *sym;
if (pe_dll_extra_pe_debug)
- printf ("%s\n", __FUNCTION__);
+ printf ("%s\n", __func__);
for (undef = link_info.hash->undefs; undef; undef=undef->u.undef.next)
if (undef->type == bfd_link_hash_undefined)
@@ -1461,7 +1461,7 @@ gld${EMULATION_NAME}_after_open (void)
bfd *a;
struct bfd_link_hash_entry *sym;
- printf ("%s()\n", __FUNCTION__);
+ printf ("%s()\n", __func__);
for (sym = link_info.hash->undefs; sym; sym=sym->u.undef.next)
printf ("-%s\n", sym->root.string);
diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em
index f0e678b84ed..0bdac8f81f0 100644
--- a/ld/emultempl/pep.em
+++ b/ld/emultempl/pep.em
@@ -1122,7 +1122,7 @@ pep_fixup_stdcalls (void)
struct bfd_link_hash_entry *undef, *sym;
if (pep_dll_extra_pe_debug)
- printf ("%s\n", __FUNCTION__);
+ printf ("%s\n", __func__);
for (undef = link_info.hash->undefs; undef; undef=undef->u.undef.next)
if (undef->type == bfd_link_hash_undefined)
@@ -1466,7 +1466,7 @@ gld${EMULATION_NAME}_after_open (void)
bfd *a;
struct bfd_link_hash_entry *sym;
- printf ("%s()\n", __FUNCTION__);
+ printf ("%s()\n", __func__);
for (sym = link_info.hash->undefs; sym; sym=sym->u.undef.next)
printf ("-%s\n", sym->root.string);