aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-02-16 09:15:57 +1030
committerAlan Modra <amodra@gmail.com>2023-02-16 21:00:50 +1030
commit7ed4ad59e91d8bd14807d6ca6a64b93757596df2 (patch)
treea0beacff1c2dc37582569dfc5fee98260f521130 /binutils
parent7f27b6b18a0b72372128b2f49f743084776f1c54 (diff)
downloadbinutils-7ed4ad59e91d8bd14807d6ca6a64b93757596df2.zip
binutils-7ed4ad59e91d8bd14807d6ca6a64b93757596df2.tar.gz
binutils-7ed4ad59e91d8bd14807d6ca6a64b93757596df2.tar.bz2
Delete PROGRESS macros
I don't see much point in cluttering the source with the PROGRESS macros, which of course do nothing at all with the definitions in progress.h. progress.h is unchanged apart from the copyright comment since commit d4d4c53c68f0 in 1994. binutils/ * ar.c: Don't include progress.h, or invoke PROGRESS macros. * nm.c: Likewise. * objcopy.c: Likewise. * objdump.c: Likewise. gas/ * as.h: Don't include progress.h. * as.c: Don't invoke PROGRESS macros. * write.c: Likewise. include/ * progress.h: Delete. ld/ * ldmain.c: Don't include progress.h, or invoke PROGRESS macros.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ar.c12
-rw-r--r--binutils/nm.c12
-rw-r--r--binutils/objcopy.c5
-rw-r--r--binutils/objdump.c5
4 files changed, 1 insertions, 33 deletions
diff --git a/binutils/ar.c b/binutils/ar.c
index 2c901ca..0c6ccf9 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -26,7 +26,6 @@
#include "sysdep.h"
#include "bfd.h"
#include "libiberty.h"
-#include "progress.h"
#include "getopt.h"
#include "aout/ar.h"
#include "bucomm.h"
@@ -198,10 +197,7 @@ map_over_members (bfd *arch, void (*function)(bfd *), char **files, int count)
if (count == 0)
{
for (head = arch->archive_next; head; head = head->archive_next)
- {
- PROGRESS (1);
- function (head);
- }
+ function (head);
return;
}
@@ -223,7 +219,6 @@ map_over_members (bfd *arch, void (*function)(bfd *), char **files, int count)
{
const char * filename;
- PROGRESS (1);
/* PR binutils/15796: Once an archive element has been matched
do not match it again. If the user provides multiple same-named
parameters on the command line their intent is to match multiple
@@ -749,8 +744,6 @@ main (int argc, char **argv)
is_ranlib = 0;
}
- START_PROGRESS (program_name, 0);
-
if (bfd_init () != BFD_INIT_MAGIC)
fatal (_("fatal error: libbfd ABI mismatch"));
set_default_bfd_target ();
@@ -952,8 +945,6 @@ main (int argc, char **argv)
}
}
- END_PROGRESS (program_name);
-
xexit (0);
return 0;
}
@@ -1063,7 +1054,6 @@ open_inarch (const char *archive_filename, const char *file)
next_one;
next_one = bfd_openr_next_archived_file (arch, next_one))
{
- PROGRESS (1);
*last_one = next_one;
last_one = &next_one->archive_next;
}
diff --git a/binutils/nm.c b/binutils/nm.c
index c3c407a..e91aa67 100644
--- a/binutils/nm.c
+++ b/binutils/nm.c
@@ -20,7 +20,6 @@
#include "sysdep.h"
#include "bfd.h"
-#include "progress.h"
#include "getopt.h"
#include "aout/stab_gnu.h"
#include "aout/ranlib.h"
@@ -786,8 +785,6 @@ filter_symbols (bfd *abfd, bool is_dynamic, void *minisyms,
int keep = 0;
asymbol *sym;
- PROGRESS (1);
-
sym = bfd_minisymbol_to_symbol (abfd, is_dynamic, (const void *) from, store);
if (sym == NULL)
bfd_fatal (bfd_get_filename (abfd));
@@ -1183,8 +1180,6 @@ print_symbol (bfd * abfd,
symbol_info syminfo;
struct extended_symbol_info info;
- PROGRESS (1);
-
format->print_symbol_filename (archive_bfd, abfd);
bfd_get_symbol_info (abfd, sym, &syminfo);
@@ -1604,8 +1599,6 @@ display_archive (bfd *file)
for (;;)
{
- PROGRESS (1);
-
arfile = bfd_openr_next_archived_file (file, arfile);
if (arfile == NULL)
@@ -2005,8 +1998,6 @@ main (int argc, char **argv)
bfd_plugin_set_program_name (program_name);
#endif
- START_PROGRESS (program_name, 0);
-
expandargv (&argc, &argv);
if (bfd_init () != BFD_INIT_MAGIC)
@@ -2193,13 +2184,10 @@ main (int argc, char **argv)
/* We were given several filenames to do. */
while (optind < argc)
{
- PROGRESS (1);
if (!display_file (argv[optind++]))
retval++;
}
- END_PROGRESS (program_name);
-
exit (retval);
return retval;
}
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index b9d946a..cf83044 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -20,7 +20,6 @@
#include "sysdep.h"
#include "bfd.h"
-#include "progress.h"
#include "getopt.h"
#include "libiberty.h"
#include "bucomm.h"
@@ -6053,8 +6052,6 @@ main (int argc, char *argv[])
program_name = argv[0];
xmalloc_set_program_name (program_name);
- START_PROGRESS (program_name, 0);
-
expandargv (&argc, &argv);
strip_symbols = STRIP_UNDEF;
@@ -6089,8 +6086,6 @@ main (int argc, char *argv[])
else
copy_main (argc, argv);
- END_PROGRESS (program_name);
-
xexit (status);
return status;
}
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 8cf9d05..984c721 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -52,7 +52,6 @@
#include "bfd.h"
#include "elf-bfd.h"
#include "coff-bfd.h"
-#include "progress.h"
#include "bucomm.h"
#include "elfcomm.h"
#include "demanguse.h"
@@ -5838,8 +5837,6 @@ main (int argc, char **argv)
xmalloc_set_program_name (program_name);
bfd_set_error_program_name (program_name);
- START_PROGRESS (program_name, 0);
-
expandargv (&argc, &argv);
if (bfd_init () != BFD_INIT_MAGIC)
@@ -6221,7 +6218,5 @@ main (int argc, char **argv)
free (dump_ctf_parent_name);
free ((void *) source_comment);
- END_PROGRESS (program_name);
-
return exit_status;
}