summaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authordpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-27 03:04:40 +0000
committerdpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-27 03:04:40 +0000
commit262444a635855717600f33ffff7cf633d91fe8c5 (patch)
treed83a8d6ed732288799e53eadf75a909cdffd8111 /gcc/opts.c
parenta7a723f0f12cdce946603c174503b640b2b98dae (diff)
downloadgcc-262444a635855717600f33ffff7cf633d91fe8c5.tar.gz
* final.c (debug_flush_symbol_queue): New function.
(debug_queue_symbol): New function. (debug_free_queue): New function. (debug_nesting): New variable. (symbol_queue): New variable. (symbol_queue_index): Same. (symbol_queue_size): Same. * debug.h (debug_flush_symbol_queue): New. (debug_queue_symbol): New. (debug_free_queue): New. (debug_nesting): New. (symbol_queue_index): New. * dbxout.c (DBXOUT_DECR_NESTING): New macro. (DBXOUT_DECR_NESTING_AND_RETURN): New macro. (dbxout_init): Delay symbol output. (dbxout_global_decl): Save, set and reset TREE_USED bit around dbxout_symbol() call. (dbxout_begin_function): Same. (dbxout_finish): Free symbol queue. (dbxout_type): Put appropriate symbols in queue. (dbxout_symbol): Put info for symbol's type in queue. Decrement/Increment nesting counts flush symbol queue appropriately. (dbxout_parms): Increment dbxout nesting. (dbxout_reg_parms): Same. * flags.h (flag_debug_only_used_symbols): New. * toplev.c (flag_debug_only_used_symbols): New variable. (lang_independent_options): Add entries for new option -feliminate-unused-debug-symbols. * common.opt: Add entry for -feliminate-unused-debug-symbols. * opts.c (common_handle_options): Same. * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as -feliminate-unused-debug-symbols. * doc/invoke.texi (Debugging Options): Document -feliminate-unused-debug-symbols. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68556 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index a5e8297d1e4..b1238beb291 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -737,6 +737,10 @@ common_handle_option (size_t scode, const char *arg,
flag_eliminate_unused_debug_types = value;
break;
+ case OPT_feliminate_unused_debug_symbols:
+ flag_debug_only_used_symbols = value;
+ break;
+
case OPT_fexceptions:
flag_exceptions = value;
break;