Commit d4b7742d by Aldy Hernandez Committed by Aldy Hernandez

dwarf2out.c (gen_lexical_block_die): Remove unused `depth' parameter.

	* dwarf2out.c (gen_lexical_block_die): Remove unused `depth'
	parameter.
	(gen_inlined_subroutine_die): Same.
	(gen_block_die): Same.
	(decls_for_scope): Same.

From-SVN: r218639
parent b8c555ac
2014-12-11 Aldy Hernandez <aldyh@redhat.com>
* dwarf2out.c (gen_lexical_block_die): Remove unused `depth'
parameter.
(gen_inlined_subroutine_die): Same.
(gen_block_die): Same.
(decls_for_scope): Same.
2014-12-11 Renlin Li <renlin.li@arm.com> 2014-12-11 Renlin Li <renlin.li@arm.com>
* config/aarch64/aarch64-cores.def: Change all AARCH64_FL_FPSIMD to * config/aarch64/aarch64-cores.def: Change all AARCH64_FL_FPSIMD to
...@@ -3263,8 +3263,8 @@ static void gen_subprogram_die (tree, dw_die_ref); ...@@ -3263,8 +3263,8 @@ static void gen_subprogram_die (tree, dw_die_ref);
static void gen_variable_die (tree, tree, dw_die_ref); static void gen_variable_die (tree, tree, dw_die_ref);
static void gen_const_die (tree, dw_die_ref); static void gen_const_die (tree, dw_die_ref);
static void gen_label_die (tree, dw_die_ref); static void gen_label_die (tree, dw_die_ref);
static void gen_lexical_block_die (tree, dw_die_ref, int); static void gen_lexical_block_die (tree, dw_die_ref);
static void gen_inlined_subroutine_die (tree, dw_die_ref, int); static void gen_inlined_subroutine_die (tree, dw_die_ref);
static void gen_field_die (tree, dw_die_ref); static void gen_field_die (tree, dw_die_ref);
static void gen_ptr_to_mbr_type_die (tree, dw_die_ref); static void gen_ptr_to_mbr_type_die (tree, dw_die_ref);
static dw_die_ref gen_compile_unit_die (const char *); static dw_die_ref gen_compile_unit_die (const char *);
...@@ -3275,8 +3275,8 @@ static void gen_struct_or_union_type_die (tree, dw_die_ref, ...@@ -3275,8 +3275,8 @@ static void gen_struct_or_union_type_die (tree, dw_die_ref,
static void gen_subroutine_type_die (tree, dw_die_ref); static void gen_subroutine_type_die (tree, dw_die_ref);
static void gen_typedef_die (tree, dw_die_ref); static void gen_typedef_die (tree, dw_die_ref);
static void gen_type_die (tree, dw_die_ref); static void gen_type_die (tree, dw_die_ref);
static void gen_block_die (tree, dw_die_ref, int); static void gen_block_die (tree, dw_die_ref);
static void decls_for_scope (tree, dw_die_ref, int); static void decls_for_scope (tree, dw_die_ref);
static inline int is_redundant_typedef (const_tree); static inline int is_redundant_typedef (const_tree);
static bool is_naming_typedef_decl (const_tree); static bool is_naming_typedef_decl (const_tree);
static inline dw_die_ref get_context_die (tree); static inline dw_die_ref get_context_die (tree);
...@@ -18696,7 +18696,7 @@ gen_subprogram_die (tree decl, dw_die_ref context_die) ...@@ -18696,7 +18696,7 @@ gen_subprogram_die (tree decl, dw_die_ref context_die)
if (DECL_NAME (DECL_RESULT (decl))) if (DECL_NAME (DECL_RESULT (decl)))
gen_decl_die (DECL_RESULT (decl), NULL, subr_die); gen_decl_die (DECL_RESULT (decl), NULL, subr_die);
decls_for_scope (outer_scope, subr_die, 0); decls_for_scope (outer_scope, subr_die);
if (call_arg_locations && !dwarf_strict) if (call_arg_locations && !dwarf_strict)
{ {
...@@ -19294,7 +19294,7 @@ add_high_low_attributes (tree stmt, dw_die_ref die) ...@@ -19294,7 +19294,7 @@ add_high_low_attributes (tree stmt, dw_die_ref die)
/* Generate a DIE for a lexical block. */ /* Generate a DIE for a lexical block. */
static void static void
gen_lexical_block_die (tree stmt, dw_die_ref context_die, int depth) gen_lexical_block_die (tree stmt, dw_die_ref context_die)
{ {
dw_die_ref stmt_die = new_die (DW_TAG_lexical_block, context_die, stmt); dw_die_ref stmt_die = new_die (DW_TAG_lexical_block, context_die, stmt);
...@@ -19308,13 +19308,13 @@ gen_lexical_block_die (tree stmt, dw_die_ref context_die, int depth) ...@@ -19308,13 +19308,13 @@ gen_lexical_block_die (tree stmt, dw_die_ref context_die, int depth)
if (! BLOCK_ABSTRACT (stmt) && TREE_ASM_WRITTEN (stmt)) if (! BLOCK_ABSTRACT (stmt) && TREE_ASM_WRITTEN (stmt))
add_high_low_attributes (stmt, stmt_die); add_high_low_attributes (stmt, stmt_die);
decls_for_scope (stmt, stmt_die, depth); decls_for_scope (stmt, stmt_die);
} }
/* Generate a DIE for an inlined subprogram. */ /* Generate a DIE for an inlined subprogram. */
static void static void
gen_inlined_subroutine_die (tree stmt, dw_die_ref context_die, int depth) gen_inlined_subroutine_die (tree stmt, dw_die_ref context_die)
{ {
tree decl; tree decl;
...@@ -19346,7 +19346,7 @@ gen_inlined_subroutine_die (tree stmt, dw_die_ref context_die, int depth) ...@@ -19346,7 +19346,7 @@ gen_inlined_subroutine_die (tree stmt, dw_die_ref context_die, int depth)
add_high_low_attributes (stmt, subr_die); add_high_low_attributes (stmt, subr_die);
add_call_src_coords_attributes (stmt, subr_die); add_call_src_coords_attributes (stmt, subr_die);
decls_for_scope (stmt, subr_die, depth); decls_for_scope (stmt, subr_die);
} }
} }
...@@ -20240,7 +20240,7 @@ gen_type_die (tree type, dw_die_ref context_die) ...@@ -20240,7 +20240,7 @@ gen_type_die (tree type, dw_die_ref context_die)
things which are local to the given block. */ things which are local to the given block. */
static void static void
gen_block_die (tree stmt, dw_die_ref context_die, int depth) gen_block_die (tree stmt, dw_die_ref context_die)
{ {
int must_output_die = 0; int must_output_die = 0;
bool inlined_func; bool inlined_func;
...@@ -20259,7 +20259,7 @@ gen_block_die (tree stmt, dw_die_ref context_die, int depth) ...@@ -20259,7 +20259,7 @@ gen_block_die (tree stmt, dw_die_ref context_die, int depth)
tree sub; tree sub;
for (sub = BLOCK_SUBBLOCKS (stmt); sub; sub = BLOCK_CHAIN (sub)) for (sub = BLOCK_SUBBLOCKS (stmt); sub; sub = BLOCK_CHAIN (sub))
gen_block_die (sub, context_die, depth + 1); gen_block_die (sub, context_die);
return; return;
} }
...@@ -20314,13 +20314,13 @@ gen_block_die (tree stmt, dw_die_ref context_die, int depth) ...@@ -20314,13 +20314,13 @@ gen_block_die (tree stmt, dw_die_ref context_die, int depth)
the concrete instance of STMT got inlined, the later will lead the concrete instance of STMT got inlined, the later will lead
to the generation of a DW_TAG_inlined_subroutine DIE. */ to the generation of a DW_TAG_inlined_subroutine DIE. */
if (! BLOCK_ABSTRACT (stmt)) if (! BLOCK_ABSTRACT (stmt))
gen_inlined_subroutine_die (stmt, context_die, depth); gen_inlined_subroutine_die (stmt, context_die);
} }
else else
gen_lexical_block_die (stmt, context_die, depth); gen_lexical_block_die (stmt, context_die);
} }
else else
decls_for_scope (stmt, context_die, depth); decls_for_scope (stmt, context_die);
} }
/* Process variable DECL (or variable with origin ORIGIN) within /* Process variable DECL (or variable with origin ORIGIN) within
...@@ -20352,7 +20352,7 @@ process_scope_var (tree stmt, tree decl, tree origin, dw_die_ref context_die) ...@@ -20352,7 +20352,7 @@ process_scope_var (tree stmt, tree decl, tree origin, dw_die_ref context_die)
all of its sub-blocks. */ all of its sub-blocks. */
static void static void
decls_for_scope (tree stmt, dw_die_ref context_die, int depth) decls_for_scope (tree stmt, dw_die_ref context_die)
{ {
tree decl; tree decl;
unsigned int i; unsigned int i;
...@@ -20384,7 +20384,7 @@ decls_for_scope (tree stmt, dw_die_ref context_die, int depth) ...@@ -20384,7 +20384,7 @@ decls_for_scope (tree stmt, dw_die_ref context_die, int depth)
for (subblocks = BLOCK_SUBBLOCKS (stmt); for (subblocks = BLOCK_SUBBLOCKS (stmt);
subblocks != NULL; subblocks != NULL;
subblocks = BLOCK_CHAIN (subblocks)) subblocks = BLOCK_CHAIN (subblocks))
gen_block_die (subblocks, context_die, depth + 1); gen_block_die (subblocks, context_die);
} }
/* Is this a typedef we can avoid emitting? */ /* Is this a typedef we can avoid emitting? */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment