diff options
author | Alan Modra <amodra@gmail.com> | 2023-01-12 16:46:23 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-01-12 17:20:21 +1030 |
commit | 4981a31d523de41713fc40aa8101b4d73d44df57 (patch) | |
tree | 17ff496b3e34113f137fe2b829cdba06a79ed2bc /bfd/bfd-in2.h | |
parent | 2070fc67bad14bd12c722a7a6baffcafd55e862a (diff) | |
download | gdb-4981a31d523de41713fc40aa8101b4d73d44df57.zip gdb-4981a31d523de41713fc40aa8101b4d73d44df57.tar.gz gdb-4981a31d523de41713fc40aa8101b4d73d44df57.tar.bz2 |
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 'bfd/bfd-in2.h')
-rw-r--r-- | bfd/bfd-in2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index b6e417f..a20678f 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -372,10 +372,10 @@ extern int bfd_stat (bfd *, struct stat *); /* Deprecated old routines. */ #if __GNUC__ #define bfd_read(BUF, ELTSIZE, NITEMS, ABFD) \ - (_bfd_warn_deprecated ("bfd_read", __FILE__, __LINE__, __FUNCTION__), \ + (_bfd_warn_deprecated ("bfd_read", __FILE__, __LINE__, __func__), \ bfd_bread ((BUF), (ELTSIZE) * (NITEMS), (ABFD))) #define bfd_write(BUF, ELTSIZE, NITEMS, ABFD) \ - (_bfd_warn_deprecated ("bfd_write", __FILE__, __LINE__, __FUNCTION__), \ + (_bfd_warn_deprecated ("bfd_write", __FILE__, __LINE__, __func__), \ bfd_bwrite ((BUF), (ELTSIZE) * (NITEMS), (ABFD))) #else #define bfd_read(BUF, ELTSIZE, NITEMS, ABFD) \ |