aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorDavid Binderman <dcb314@hotmail.com>2009-11-24 12:59:00 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2009-11-24 12:59:00 +0000
commit2d8882865f812124cce403d0a28d372dd6d712b2 (patch)
treec4c734414946f093503d760e00bd8bb69ef8e901 /gcc/dwarf2out.c
parent44018bc325fd70bba94cbfa4f8fa4b51c56ea0b6 (diff)
downloadgcc-2d8882865f812124cce403d0a28d372dd6d712b2.zip
gcc-2d8882865f812124cce403d0a28d372dd6d712b2.tar.gz
gcc-2d8882865f812124cce403d0a28d372dd6d712b2.tar.bz2
cfgrtl.c (commit_one_edge_insertion): Remove set but not used local variable bb_note.
2009-11-24 David Binderman <dcb314@hotmail.com> * cfgrtl.c (commit_one_edge_insertion): Remove set but not used local variable bb_note. * dominance.c (get_dominated_by): Likewise local var n. (output_file_names): Likewise local var idx. (add_location_or_const_value_attribute): Likewise local var status. * dwarf2out.c (gen_variable_die): Likewise local var field. * emit-rtl.c (no_line_numbers): Remove. (init_emit_once): Remove line_numbers parameter. * rtl.h (init_emit_once): Adjust prototype. * toplev.c (backend_init): Adjust init_emit_once call. From-SVN: r154496
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 0394114..25b5fdc 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -11261,7 +11261,6 @@ output_file_names (void)
int ndirs;
int idx_offset;
int i;
- int idx;
if (!last_emitted_file)
{
@@ -11388,7 +11387,6 @@ output_file_names (void)
}
/* Emit the directory name table. */
- idx = 1;
idx_offset = dirs[0].length > 0 ? 1 : 0;
for (i = 1 - idx_offset; i < ndirs; i++)
dw2_asm_output_nstring (dirs[i].path,
@@ -15721,11 +15719,10 @@ add_location_or_const_value_attribute (dw_die_ref die, tree decl,
loc_list = lookup_decl_loc (decl);
if (loc_list && loc_list->first && loc_list->first == loc_list->last)
{
- enum var_init_status status;
struct var_loc_node *node;
node = loc_list->first;
- status = NOTE_VAR_LOCATION_STATUS (node->var_loc_note);
+ NOTE_VAR_LOCATION_STATUS (node->var_loc_note);
rtl = NOTE_VAR_LOCATION (node->var_loc_note);
if (GET_CODE (rtl) == VAR_LOCATION
&& GET_CODE (XEXP (rtl, 1)) != PARALLEL)
@@ -17962,7 +17959,6 @@ gen_variable_die (tree decl, tree origin, dw_die_ref context_die)
of a data member. */
if (com_decl)
{
- tree field;
dw_die_ref com_die;
dw_loc_list_ref loc;
die_node com_die_arg;
@@ -18000,7 +17996,6 @@ gen_variable_die (tree decl, tree origin, dw_die_ref context_die)
= htab_create_ggc (10, common_block_die_table_hash,
common_block_die_table_eq, NULL);
- field = TREE_OPERAND (DECL_VALUE_EXPR (decl), 0);
com_die_arg.decl_id = DECL_UID (com_decl);
com_die_arg.die_parent = context_die;
com_die = (dw_die_ref) htab_find (common_block_die_table, &com_die_arg);