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.
#include "sysdep.h"
#include "bfd.h"
#include "libiberty.h"
-#include "progress.h"
#include "getopt.h"
#include "aout/ar.h"
#include "bucomm.h"
if (count == 0)
{
for (head = arch->archive_next; head; head = head->archive_next)
- {
- PROGRESS (1);
- function (head);
- }
+ function (head);
return;
}
{
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
is_ranlib = 0;
}
- START_PROGRESS (program_name, 0);
-
if (bfd_init () != BFD_INIT_MAGIC)
fatal (_("fatal error: libbfd ABI mismatch"));
set_default_bfd_target ();
}
}
- END_PROGRESS (program_name);
-
xexit (0);
return 0;
}
next_one;
next_one = bfd_openr_next_archived_file (arch, next_one))
{
- PROGRESS (1);
*last_one = next_one;
last_one = &next_one->archive_next;
}
#include "sysdep.h"
#include "bfd.h"
-#include "progress.h"
#include "getopt.h"
#include "aout/stab_gnu.h"
#include "aout/ranlib.h"
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));
symbol_info syminfo;
struct extended_symbol_info info;
- PROGRESS (1);
-
format->print_symbol_filename (archive_bfd, abfd);
bfd_get_symbol_info (abfd, sym, &syminfo);
for (;;)
{
- PROGRESS (1);
-
arfile = bfd_openr_next_archived_file (file, arfile);
if (arfile == NULL)
bfd_plugin_set_program_name (program_name);
#endif
- START_PROGRESS (program_name, 0);
-
expandargv (&argc, &argv);
if (bfd_init () != BFD_INIT_MAGIC)
/* 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;
}
\f
#include "sysdep.h"
#include "bfd.h"
-#include "progress.h"
#include "getopt.h"
#include "libiberty.h"
#include "bucomm.h"
program_name = argv[0];
xmalloc_set_program_name (program_name);
- START_PROGRESS (program_name, 0);
-
expandargv (&argc, &argv);
strip_symbols = STRIP_UNDEF;
else
copy_main (argc, argv);
- END_PROGRESS (program_name);
-
xexit (status);
return status;
}
#include "bfd.h"
#include "elf-bfd.h"
#include "coff-bfd.h"
-#include "progress.h"
#include "bucomm.h"
#include "elfcomm.h"
#include "demanguse.h"
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)
free (dump_ctf_parent_name);
free ((void *) source_comment);
- END_PROGRESS (program_name);
-
return exit_status;
}
{
if (*argv)
{ /* Is it a file-name argument? */
- PROGRESS (1);
saw_a_file++;
/* argv->"" if stdin desired, else->filename. */
read_a_source_file (*argv);
myname = **argvp;
xmalloc_set_program_name (myname);
bfd_set_error_program_name (myname);
- START_PROGRESS (myname, 0);
expandargv (argcp, argvp);
if (flag_print_statistics)
xatexit (dump_statistics);
- PROGRESS (1);
-
dot_symbol_init ();
#ifdef tc_init_after_args
struct stat sob;
gas_early_init (&argc, &argv);
- PROGRESS (1);
/* Call parse_args before gas_init so that switches like
--hash-size can be honored. */
gas_init ();
- PROGRESS (1);
-
/* Assemble it. */
perform_an_assembly_pass (argc, argv);
input_scrub_end ();
- END_PROGRESS (myname);
-
/* Use xexit instead of return, because under VMS environments they
may not place the same interpretation on the value given. */
if (had_errors () != 0)
#include "bfd.h"
#include "libiberty.h"
-/* Define the standard progress macros. */
-#include "progress.h"
-
/* Other stuff from config.h. */
#ifdef NEED_DECLARATION_ENVIRON
extern char **environ;
maybe_generate_build_notes ();
#endif
- PROGRESS (1);
-
#ifdef tc_frob_file_before_adjust
tc_frob_file_before_adjust ();
#endif
}
}
- PROGRESS (1);
-
/* Now do any format-specific adjustments to the symbol table, such
as adding file symbols. */
#ifdef tc_adjust_symtab
+++ /dev/null
-/* Default definitions for progress macros.
- Copyright (C) 1994-2023 Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
- MA 02110-1301, USA. */
-
-/* The default definitions below are intended to be replaced by real
- definitions, if building the tools for an interactive programming
- environment. */
-
-#ifndef _PROGRESS_H
-#define _PROGRESS_H
-
-#ifndef START_PROGRESS
-#define START_PROGRESS(STR,N)
-#endif
-
-#ifndef PROGRESS
-#define PROGRESS(X)
-#endif
-
-#ifndef END_PROGRESS
-#define END_PROGRESS(STR)
-#endif
-
-#endif /* _PROGRESS_H */
#include "bfd.h"
#include "safe-ctype.h"
#include "libiberty.h"
-#include "progress.h"
#include "bfdlink.h"
#include "ctf-api.h"
#include "filenames.h"
program_name = argv[0];
xmalloc_set_program_name (program_name);
- START_PROGRESS (program_name, 0);
-
expandargv (&argc, &argv);
if (bfd_init () != BFD_INIT_MAGIC)
}
}
- END_PROGRESS (program_name);
-
if (config.stats)
{
long run_time = get_run_time () - start_time;