mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
Remove datasize measurements based on sbrk()
binutils/ * nm.c (show_stats): Remove variable. (long_options): Remove --stats option. (main): Remove handling of --stats. ld/ * ldmain.c (main): Remove display of data size. gas/ * as.c (start_sbrk): Remove. (main): Remove assignment. (dump_statistics): Remove display of data size.
This commit is contained in:
19
gas/as.c
19
gas/as.c
@@ -46,12 +46,6 @@
|
||||
#define itbl_init()
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SBRK
|
||||
#ifdef NEED_DECLARATION_SBRK
|
||||
extern void *sbrk ();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef USING_CGEN
|
||||
/* Perform any cgen specific initialisation for gas. */
|
||||
extern void gas_cgen_begin (void);
|
||||
@@ -125,9 +119,6 @@ static struct itbl_file_list *itbl_files;
|
||||
#endif
|
||||
|
||||
static long start_time;
|
||||
#ifdef HAVE_SBRK
|
||||
char *start_sbrk;
|
||||
#endif
|
||||
|
||||
static int flag_macro_alternate;
|
||||
|
||||
@@ -1043,17 +1034,10 @@ This program has absolutely no warranty.\n"));
|
||||
static void
|
||||
dump_statistics (void)
|
||||
{
|
||||
#ifdef HAVE_SBRK
|
||||
char *lim = (char *) sbrk (0);
|
||||
#endif
|
||||
long run_time = get_run_time () - start_time;
|
||||
|
||||
fprintf (stderr, _("%s: total time in assembly: %ld.%06ld\n"),
|
||||
myname, run_time / 1000000, run_time % 1000000);
|
||||
#ifdef HAVE_SBRK
|
||||
fprintf (stderr, _("%s: data size %ld\n"),
|
||||
myname, (long) (lim - start_sbrk));
|
||||
#endif
|
||||
|
||||
subsegs_print_statistics (stderr);
|
||||
write_print_statistics (stderr);
|
||||
@@ -1187,9 +1171,6 @@ main (int argc, char ** argv)
|
||||
|
||||
start_time = get_run_time ();
|
||||
signal_init ();
|
||||
#ifdef HAVE_SBRK
|
||||
start_sbrk = (char *) sbrk (0);
|
||||
#endif
|
||||
|
||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
||||
setlocale (LC_MESSAGES, "");
|
||||
|
||||
Reference in New Issue
Block a user