From a30d4fc5199ba16cec39fd3f9cca878a9699cf4e Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 6 Oct 2020 11:18:55 +0200 Subject: dbgcnt: print list after compilation gcc/ChangeLog: * common.opt: Remove -fdbg-cnt-list from deferred options. * dbgcnt.c (dbg_cnt_set_limit_by_index): Make a copy to original_limits. (dbg_cnt_list_all_counters): Print also current counter value and print to stderr. * opts-global.c (handle_common_deferred_options): Do not handle -fdbg-cnt-list. * opts.c (common_handle_option): Likewise. * toplev.c (finalize): Handle it after compilation here. --- gcc/opts.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gcc/opts.c') diff --git a/gcc/opts.c b/gcc/opts.c index 3bda59a..da503c3 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -2361,11 +2361,6 @@ common_handle_option (struct gcc_options *opts, /* Deferred. */ break; - case OPT_fdbg_cnt_list: - /* Deferred. */ - opts->x_exit_after_options = true; - break; - case OPT_fdebug_prefix_map_: case OPT_ffile_prefix_map_: /* Deferred. */ -- cgit v1.1