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 | |
parent | 804a4093182a4bdbc30abfd3081a3f58c3bd2329 (diff) | |
download | gdb-e4943f2c7569a829eb6129f10f7c5401a96aaa08.zip gdb-e4943f2c7569a829eb6129f10f7c5401a96aaa08.tar.gz 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.
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/nm.c | 11 | ||||
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/as.c | 19 | ||||
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/ldmain.c | 16 |
6 files changed, 16 insertions, 46 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d098082..7e9d809 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2017-07-19 Tristan Gingold <gingold@adacore.com> + + * nm.c (show_stats): Remove variable. + (long_options): Remove --stats option. + (main): Remove handling of --stats. + 2017-07-18 Nick Clifton <nickc@redhat.com> PR 21775 diff --git a/binutils/nm.c b/binutils/nm.c index 7ddcc8a..5e03a8a 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -157,7 +157,6 @@ static int sort_by_size = 0; /* Sort by size of symbol. */ static int undefined_only = 0; /* Print undefined symbols only. */ static int dynamic = 0; /* Print dynamic symbols. */ static int show_version = 0; /* Show the version number. */ -static int show_stats = 0; /* Show statistics. */ static int show_synthetic = 0; /* Display synthesized symbols too. */ static int line_numbers = 0; /* Print line numbers for symbols. */ static int allow_special_symbols = 0; /* Allow special symbols. */ @@ -221,7 +220,6 @@ static struct option long_options[] = {"reverse-sort", no_argument, &reverse_sort, 1}, {"size-sort", no_argument, 0, OPTION_SIZE_SORT}, {"special-syms", no_argument, &allow_special_symbols, 1}, - {"stats", no_argument, &show_stats, 1}, {"synthetic", no_argument, &show_synthetic, 1}, {"target", required_argument, 0, OPTION_TARGET}, {"defined-only", no_argument, &defined_only, 1}, @@ -1797,15 +1795,6 @@ main (int argc, char **argv) END_PROGRESS (program_name); -#ifdef HAVE_SBRK - if (show_stats) - { - char *lim = (char *) sbrk (0); - - non_fatal (_("data size %ld"), (long) (lim - (char *) &environ)); - } -#endif - exit (retval); return retval; } 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, ""); diff --git a/ld/ChangeLog b/ld/ChangeLog index ea648a9..4525236 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2017-07-19 Tristan Gingold <gingold@adacore.com> + + * ldmain.c (main): Remove display of data size. + 2017-07-18 Maciej W. Rozycki <macro@imgtec.com> * testsuite/ld-elf/binutils.exp (binutils_test): Make the diff --git a/ld/ldmain.c b/ld/ldmain.c index ee5ab11..5d1a3f4 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -50,12 +50,6 @@ #include <string.h> -#ifdef HAVE_SBRK -#if !HAVE_DECL_SBRK -extern void *sbrk (); -#endif -#endif - #ifndef TARGET_SYSTEM_ROOT #define TARGET_SYSTEM_ROOT "" #endif @@ -198,9 +192,6 @@ main (int argc, char **argv) { char *emulation; long start_time = get_run_time (); -#ifdef HAVE_SBRK - char *start_sbrk = (char *) sbrk (0); -#endif #if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES) setlocale (LC_MESSAGES, ""); @@ -539,18 +530,11 @@ main (int argc, char **argv) if (config.stats) { -#ifdef HAVE_SBRK - char *lim = (char *) sbrk (0); -#endif long run_time = get_run_time () - start_time; fflush (stdout); fprintf (stderr, _("%s: total time in link: %ld.%06ld\n"), program_name, run_time / 1000000, run_time % 1000000); -#ifdef HAVE_SBRK - fprintf (stderr, _("%s: data size %ld\n"), program_name, - (long) (lim - start_sbrk)); -#endif fflush (stderr); } |