diff options
author | dpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-27 03:04:40 +0000 |
---|---|---|
committer | dpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-27 03:04:40 +0000 |
commit | 262444a635855717600f33ffff7cf633d91fe8c5 (patch) | |
tree | d83a8d6ed732288799e53eadf75a909cdffd8111 /gcc/common.opt | |
parent | a7a723f0f12cdce946603c174503b640b2b98dae (diff) | |
download | gcc-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/common.opt')
-rw-r--r-- | gcc/common.opt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index cca70d65a0e..347b59f2483 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -241,6 +241,9 @@ Common feliminate-dwarf2-dups Common +feliminate-unused-debug-symbols +Common + feliminate-unused-debug-types Common |