diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-07-19 09:55:12 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-07-19 09:55:12 +0200 |
commit | e4943f2c7569a829eb6129f10f7c5401a96aaa08 (patch) | |
tree | 43d4bd10919d8ae70d4fa61dcbab74f58d6e02b6 /gas | |
parent | 804a4093182a4bdbc30abfd3081a3f58c3bd2329 (diff) | |
download | fsf-binutils-gdb-e4943f2c7569a829eb6129f10f7c5401a96aaa08.zip fsf-binutils-gdb-e4943f2c7569a829eb6129f10f7c5401a96aaa08.tar.gz fsf-binutils-gdb-e4943f2c7569a829eb6129f10f7c5401a96aaa08.tar.bz2 |
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.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/as.c | 19 |
2 files changed, 6 insertions, 19 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index c53ac9a..dd6a34f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,11 @@ 2017-07-19 Tristan Gingold <gingold@adacore.com> + * as.c (start_sbrk): Remove. + (main): Remove assignment. + (dump_statistics): Remove display of data size. + +2017-07-19 Tristan Gingold <gingold@adacore.com> + * testsuite/gas/pe/seh-x64-err-2.s: New test. * testsuite/gas/pe/seh-x64-err-2.l: New stderr output. * testsuite/gas/pe/pe.exp: Add test. @@ -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, ""); |