From patchwork Thu Jan 12 06:49:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 42263 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3729818wrt; Wed, 11 Jan 2023 22:50:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXs6SVYqg7r/1e8UwXxIOMtDVCEwzI3G/j9KO3oBSQdMgGyWWAun8u9U2RGf8Lyv/eSL3SWp X-Received: by 2002:a50:eac6:0:b0:461:d042:80db with SMTP id u6-20020a50eac6000000b00461d04280dbmr65332407edp.0.1673506209093; Wed, 11 Jan 2023 22:50:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673506209; cv=none; d=google.com; s=arc-20160816; b=K8frC4+R4Xjleu60WpwDeecHp+Hbe0ewJcnmDQuoz1U78y89dS7MbM+DU4zNUTN0PC MoLyrM3NSpwF7nGNk3hhRRhwuN7GD3G0qIx3F/awvJUHnccFTG7V+C5qePrpdutOHs/n C4Me66uZsS3LHYmO22z3tzkamPqHiiAH6ssHON18rpfiNbJaNstqtDTTd8UQ1an6grxq qaoYP7HpKMk3uSK2wXqbqC+9gv0pHGt7u6hr59KJcd7UUGOlCr0aChR/mB4b4aeayOVZ rzLCzHTVMW0j3fimD21ypGg8Gqd7nFk1rqEk/eBXLFez6S4bkNlWqE4ISeVFkey8b1sH 1Khg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=AdgwIJfQ0eFC3PLfn3ZlpEb+itfoKW9V+AyBmxKWgLQ=; b=rjjs0HJW73+R8YrTBtWUR6mYVLo00bla5CMUlNLLApPdUTinc8vM3XZkeCh9C5Vl1L +r9tEke4STcruqrzo6q+wCcR4PPi6iJ+LEMx4k/9uRX3lpXBe1vfsjNHjOJZLpolBla/ rldbvGvD1R139BkvzblLmDcQHD4tTX4/KgcXICDdL9yvRQXZ1xZh4wDDoGmqLnqGDBUH dY7MEQfG3bpz4OZWxbGCv5XsRlVnB/VvBLUWEfEdbSLE8TKDvzl949Z31ZQhliJHkTCd 7nXEcyxlghXBhyVFW9sBpXxa0FmsVpe1tjoFBD/4d1X6MpkP8GPd8RXzjMCltSVHsqUd bDTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=tqzFSbm+; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id hd6-20020a170907968600b0079bf804c0c4si19751376ejc.103.2023.01.11.22.50.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jan 2023 22:50:09 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=tqzFSbm+; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F343A385B523 for ; Thu, 12 Jan 2023 06:50:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F343A385B523 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673506208; bh=AdgwIJfQ0eFC3PLfn3ZlpEb+itfoKW9V+AyBmxKWgLQ=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=tqzFSbm+M1zSR6fuQZl375TA5iA/t9dbN8CV/A5Wrc+ThLtTscEIwPC18Ag34ACwY UmpiW9p+O5zcc31yE5+R+XK267X7HKE+5kWet1oPPJIWM9HyOBOsk/rgXjVGw1UP0o ga76ekyr/A8lzCesa61QlRIv78Sl43dneMaAKEv8= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id E4D813858D35 for ; Thu, 12 Jan 2023 06:49:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E4D813858D35 Received: by mail-pf1-x435.google.com with SMTP id a184so13119665pfa.9 for ; Wed, 11 Jan 2023 22:49:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AdgwIJfQ0eFC3PLfn3ZlpEb+itfoKW9V+AyBmxKWgLQ=; b=s3D2O7KdtqXmsKKis+o1NNUisHrHtIUYSyPKmChNG9AKSs2UNPiam+hwbaNCkwqukq CifQJVF+iFCyPaAIzfvqqccIgOf1POMRT5vIYUGSGmN1RiDTXuEoUsXjn0vzqOxhK7vQ WXrgPRbl5GZQ6VYLoXwhFXpGe2VARt6nDYOxpuNrAAsol/2OIQAteHDBoRGZCXgsFZ2A cwpv4hOktjhq9dsy5mukfilsX5N/vtGH/2a37nzUnD84iRFiiljM2XsLIROFpskR3zkw uY5cre59wiCKX5H5X8gpFM6ChPMw0/SZvXvgNi8ig8G/24AXTRjO3L4Ox5eZzNx2MSRu 0wYA== X-Gm-Message-State: AFqh2kpSvRkA7lqCIy/ygWdQdM8umbDMRtMl1yZOhCi3ZWqUDobOWk26 79Lf7X5QszSKWmOve1kGGLSE8zU18co= X-Received: by 2002:a62:6487:0:b0:563:cc80:fb66 with SMTP id y129-20020a626487000000b00563cc80fb66mr57322667pfb.0.1673506196623; Wed, 11 Jan 2023 22:49:56 -0800 (PST) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id 207-20020a6218d8000000b00580d877a50fsm11110922pfy.55.2023.01.11.22.49.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jan 2023 22:49:56 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id C3BB81142589; Thu, 12 Jan 2023 17:19:53 +1030 (ACDT) Date: Thu, 12 Jan 2023 17:19:53 +1030 To: binutils@sourceware.org Subject: Use __func__ rather than __FUNCTION__ Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-3035.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alan Modra via Binutils From: Alan Modra Reply-To: Alan Modra Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754798446747531053?= X-GMAIL-MSGID: =?utf-8?q?1754798446747531053?= 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. diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index d67bb70f396..c3f92c142a5 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -365,10 +365,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) \ diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index b6e417f26ec..a20678f7c18 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) \ diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c index 1128451cfb5..c47a8e888a1 100644 --- a/bfd/elf32-bfin.c +++ b/bfd/elf32-bfin.c @@ -4917,8 +4917,7 @@ bfin_finish_dynamic_symbol (bfd * output_bfd, && (info->symbolic || h->dynindx == -1 || h->forced_local) && h->def_regular) { - _bfd_error_handler (_("*** check this relocation %s"), - __FUNCTION__); + _bfd_error_handler (_("*** check this relocation %s"), __func__); rela.r_info = ELF32_R_INFO (0, R_BFIN_PCREL24); rela.r_addend = bfd_get_signed_32 (output_bfd, (sgot->contents diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index 697885a2986..c109ccdd996 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -5539,7 +5539,7 @@ elfNN_aarch64_final_link_relocate (reloc_howto_type *howto, /* xgettext:c-format */ (_("%pB: relocation %s against STT_GNU_IFUNC " "symbol `%s' isn't handled by %s"), input_bfd, - howto->name, name, __FUNCTION__); + howto->name, name, __func__); bfd_set_error (bfd_error_bad_value); return bfd_reloc_notsupported; diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c index 8057db7c10d..4c969546211 100644 --- a/bfd/elfxx-sparc.c +++ b/bfd/elfxx-sparc.c @@ -3021,7 +3021,7 @@ _bfd_sparc_elf_relocate_section (bfd *output_bfd, (_("%pB: relocation %s against STT_GNU_IFUNC " "symbol `%s' isn't handled by %s"), input_bfd, _bfd_sparc_elf_howto_table[r_type].name, - name, __FUNCTION__); + name, __func__); bfd_set_error (bfd_error_bad_value); return false; } diff --git a/gas/config/tc-cris.c b/gas/config/tc-cris.c index 35380516267..b9631bbf566 100644 --- a/gas/config/tc-cris.c +++ b/gas/config/tc-cris.c @@ -548,11 +548,11 @@ cris_relax_frag (segT seg ATTRIBUTE_UNUSED, fragS *fragP, if (fragP->fr_symbol == NULL || S_GET_SEGMENT (fragP->fr_symbol) != absolute_section) as_fatal (_("internal inconsistency problem in %s: fr_symbol %lx"), - __FUNCTION__, (long) fragP->fr_symbol); + __func__, (long) fragP->fr_symbol); symbolP = fragP->fr_symbol; if (symbol_resolved_p (symbolP)) as_fatal (_("internal inconsistency problem in %s: resolved symbol"), - __FUNCTION__); + __func__); aim = S_GET_VALUE (symbolP); break; @@ -562,7 +562,7 @@ cris_relax_frag (segT seg ATTRIBUTE_UNUSED, fragS *fragP, default: as_fatal (_("internal inconsistency problem in %s: fr_subtype %d"), - __FUNCTION__, fragP->fr_subtype); + __func__, fragP->fr_subtype); } /* The rest is stolen from relax_frag. There's no obvious way to @@ -962,7 +962,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED, segT sec ATTRIBUTE_UNUSED, case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE): if (symbolP == NULL) as_fatal (_("internal inconsistency in %s: bdapq no symbol"), - __FUNCTION__); + __func__); opcodep[0] = S_GET_VALUE (symbolP); var_part_size = 0; break; @@ -975,7 +975,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED, segT sec ATTRIBUTE_UNUSED, opcodep[1] |= BDAP_INCR_HIGH; if (symbolP == NULL) as_fatal (_("internal inconsistency in %s: bdap.w with no symbol"), - __FUNCTION__); + __func__); md_number_to_chars (var_partp, S_GET_VALUE (symbolP), 2); var_part_size = 2; break; @@ -4237,7 +4237,7 @@ s_cris_dtpoff (int bytes) if (bytes != 4) as_fatal (_("internal inconsistency problem: %s called for %d bytes"), - __FUNCTION__, bytes); + __func__, bytes); expression (&ex); diff --git a/gas/config/tc-m68hc11.c b/gas/config/tc-m68hc11.c index f5043d75116..7438e0dd51d 100644 --- a/gas/config/tc-m68hc11.c +++ b/gas/config/tc-m68hc11.c @@ -3892,17 +3892,17 @@ m68hc11_relax_frag (segT seg ATTRIBUTE_UNUSED, fragS *fragP, if (fragP->fr_symbol == NULL || S_GET_SEGMENT (fragP->fr_symbol) != absolute_section) as_fatal (_("internal inconsistency problem in %s: fr_symbol %lx"), - __FUNCTION__, (long) fragP->fr_symbol); + __func__, (long) fragP->fr_symbol); symbolP = fragP->fr_symbol; if (symbol_resolved_p (symbolP)) as_fatal (_("internal inconsistency problem in %s: resolved symbol"), - __FUNCTION__); + __func__); aim = S_GET_VALUE (symbolP); break; default: as_fatal (_("internal inconsistency problem in %s: fr_subtype %d"), - __FUNCTION__, fragP->fr_subtype); + __func__, fragP->fr_subtype); } /* The rest is stolen from relax_frag. There's no obvious way to diff --git a/gas/config/tc-msp430.c b/gas/config/tc-msp430.c index 3af15c87b7a..d6fedd8fcfd 100644 --- a/gas/config/tc-msp430.c +++ b/gas/config/tc-msp430.c @@ -4868,7 +4868,7 @@ md_convert_frag (bfd * abfd ATTRIBUTE_UNUSED, if (!cc || !cc->name) as_fatal (_("internal inconsistency problem in %s: insn %04lx"), - __FUNCTION__, (long) insn); + __func__, (long) insn); where = fragP->fr_literal + fragP->fr_fix; bfd_putl16 (cc->lop0, where); bfd_putl16 (cc->lop1, where + 2); @@ -4910,7 +4910,7 @@ md_convert_frag (bfd * abfd ATTRIBUTE_UNUSED, } if (!hc || !hc->name) as_fatal (_("internal inconsistency problem in %s: ext. insn %04lx"), - __FUNCTION__, (long) insn); + __func__, (long) insn); rela = BFD_RELOC_MSP430_10_PCREL; /* Apply a fix for a first label if necessary. another fix will be applied to the next word of insn anyway. */ @@ -4942,7 +4942,7 @@ md_convert_frag (bfd * abfd ATTRIBUTE_UNUSED, } if (!hc || !hc->name) as_fatal (_("internal inconsistency problem in %s: ext. insn %04lx"), - __FUNCTION__, (long) insn); + __func__, (long) insn); rela = BFD_RELOC_MSP430_RL_PCREL; where = fragP->fr_literal + fragP->fr_fix; bfd_putl16 (hc->lop0, where); @@ -4954,7 +4954,7 @@ md_convert_frag (bfd * abfd ATTRIBUTE_UNUSED, default: as_fatal (_("internal inconsistency problem in %s: %lx"), - __FUNCTION__, (long) fragP->fr_subtype); + __func__, (long) fragP->fr_subtype); break; } @@ -4991,7 +4991,7 @@ msp430_relax_frag (segT seg ATTRIBUTE_UNUSED, fragS * fragP, symbolP = fragP->fr_symbol; if (symbol_resolved_p (symbolP)) as_fatal (_("internal inconsistency problem in %s: resolved symbol"), - __FUNCTION__); + __func__); /* We know the offset. calculate a distance. */ aim = S_GET_VALUE (symbolP) - fragP->fr_address - fragP->fr_fix; } diff --git a/gold/dwp.h b/gold/dwp.h index 28d687bc891..d921a825a0c 100644 --- a/gold/dwp.h +++ b/gold/dwp.h @@ -94,7 +94,7 @@ gold_info(const char* msg, ...) ATTRIBUTE_PRINTF_1; #define gold_unreachable() \ (gold::do_gold_unreachable(__FILE__, __LINE__, \ - static_cast(__FUNCTION__))) + static_cast(__func__))) extern void do_gold_unreachable(const char*, int, const char*) ATTRIBUTE_NORETURN; diff --git a/gold/gold.h b/gold/gold.h index 40c3ee180fc..636d93935c1 100644 --- a/gold/gold.h +++ b/gold/gold.h @@ -163,7 +163,7 @@ gold_nomem() ATTRIBUTE_NORETURN; #if defined(__GNUC__) && GCC_VERSION < 4003 #define FUNCTION_NAME static_cast(__FUNCTION__) #else -#define FUNCTION_NAME __FUNCTION__ +#define FUNCTION_NAME __func__ #endif // This macro and function are used in cases which can not arise if 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); diff --git a/ld/pe-dll.c b/ld/pe-dll.c index a2584c39d0d..0248f4b2cf9 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -1421,7 +1421,7 @@ pe_find_data_imports (const char *symhead, char *impname; if (pe_dll_extra_pe_debug) - printf ("%s:%s\n", __FUNCTION__, undef->root.string); + printf ("%s:%s\n", __func__, undef->root.string); strcpy (name, undef->root.string); impname = name - (sizeof "__imp_" - 1); @@ -3501,7 +3501,7 @@ pe_implied_import_dll (const char *filename) if (pe_dll_extra_pe_debug) printf ("%s %s: 0x%08lx-0x%08lx (0x%08lx)\n", - __FUNCTION__, sec_name, (unsigned long) vaddr, + __func__, sec_name, (unsigned long) vaddr, (unsigned long) (vaddr + vsize), (unsigned long) flags); } else if (strcmp(sec_name,".rdata") == 0) @@ -3511,7 +3511,7 @@ pe_implied_import_dll (const char *filename) if (pe_dll_extra_pe_debug) printf ("%s %s: 0x%08lx-0x%08lx (0x%08lx)\n", - __FUNCTION__, sec_name, (unsigned long) vaddr, + __func__, sec_name, (unsigned long) vaddr, (unsigned long) (vaddr + vsize), (unsigned long) flags); } else if (strcmp (sec_name,".bss") == 0) @@ -3521,7 +3521,7 @@ pe_implied_import_dll (const char *filename) if (pe_dll_extra_pe_debug) printf ("%s %s: 0x%08lx-0x%08lx (0x%08lx)\n", - __FUNCTION__, sec_name, (unsigned long) vaddr, + __func__, sec_name, (unsigned long) vaddr, (unsigned long) (vaddr + vsize), (unsigned long) flags); } } @@ -3579,7 +3579,7 @@ pe_implied_import_dll (const char *filename) if (pe_dll_extra_pe_debug) printf ("%s dll-name: %s sym: %s addr: 0x%lx %s\n", - __FUNCTION__, dllname, erva + name_rva, + __func__, dllname, erva + name_rva, (unsigned long) func_rva, is_data ? "(data)" : ""); } @@ -3616,7 +3616,7 @@ pe_implied_import_dll (const char *filename) if (pe_dll_extra_pe_debug) printf ("%s dll-name: %s sym: %s addr: 0x%lx %s\n", - __FUNCTION__, dllname, erva + name_rva, + __func__, dllname, erva + name_rva, (unsigned long) func_rva, is_data ? "(data)" : ""); } }