From 0b398d69acde3377dfbbeb8a4cfe87ae8c8562fa Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 1 Feb 2020 23:16:11 +0000 Subject: [PATCH] binutils: drop redundant 'program_name' definition (-fno-common) * coffdump.c (program_name): Drop redundant definition. * srconv.c (program_name): Likewise * sysdump.c (program_name): Likewise Signed-off-by: Sergei Trofimovich --- binutils/ChangeLog | 6 ++++++ binutils/coffdump.c | 2 -- binutils/srconv.c | 2 -- binutils/sysdump.c | 2 -- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index a7fd43176b5..2caa7e950f2 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2020-02-03 Sergei Trofimovich + + * coffdump.c (program_name): Drop redundant definition. + * srconv.c (program_name): Likewise + * sysdump.c (program_name): Likewise + 2020-02-02 H.J. Lu PR gas/25380 diff --git a/binutils/coffdump.c b/binutils/coffdump.c index 531a4e46c3e..336da57ca21 100644 --- a/binutils/coffdump.c +++ b/binutils/coffdump.c @@ -456,8 +456,6 @@ coff_dump (struct coff_ofile *ptr) dump_coff_section (ptr->sections + i); } -char * program_name; - static void show_usage (FILE *file, int status) { diff --git a/binutils/srconv.c b/binutils/srconv.c index 5742b167593..f071794f0a7 100644 --- a/binutils/srconv.c +++ b/binutils/srconv.c @@ -1687,8 +1687,6 @@ prescan (struct coff_ofile *otree) } } -char *program_name; - ATTRIBUTE_NORETURN static void show_usage (FILE *ffile, int status) { diff --git a/binutils/sysdump.c b/binutils/sysdump.c index d433e71ed93..7eebbd61d33 100644 --- a/binutils/sysdump.c +++ b/binutils/sysdump.c @@ -633,8 +633,6 @@ module (void) } } -char *program_name; - ATTRIBUTE_NORETURN static void show_usage (FILE *ffile, int status) { -- 2.30.2