This doesn't seem to be used anywhere but in dwarf2out.c.
OK for mainline?
commit 8a48cdd576442cee103399ab4f1f67ee215ee6b8 Author: Aldy Hernandez <al...@redhat.com> Date: Tue Aug 26 14:30:22 2014 -0700 * dwarf2out.h (dwarf2out_decl): Remove prototype. * dwarf2out.c (dwarf2out_decl): Make static. 2014-08-26 David Malcolm <dmalc...@redhat.com> * cselib.h (struct elt_loc_list): Strengthen field "setting_insn" diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 1a9e50a..fb01732 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -102,6 +102,7 @@ along with GCC; see the file COPYING3. If not see static void dwarf2out_source_line (unsigned int, const char *, int, bool); static rtx_insn *last_var_location_insn; static rtx_insn *cached_next_real_insn; +static void dwarf2out_decl (tree); #ifdef VMS_DEBUGGING_INFO int vms_file_stats_name (const char *, long long *, long *, char *, int *); @@ -20881,7 +20882,7 @@ gen_namelist_decl (tree name, dw_die_ref scope_die, tree item_decls) /* Write the debugging output for DECL. */ -void +static void dwarf2out_decl (tree decl) { dw_die_ref context_die = comp_unit_die (); diff --git a/gcc/dwarf2out.h b/gcc/dwarf2out.h index bac5077..7843e0a 100644 --- a/gcc/dwarf2out.h +++ b/gcc/dwarf2out.h @@ -249,7 +249,6 @@ extern enum dw_cfi_oprnd_type dw_cfi_oprnd2_desc extern void output_cfi_directive (FILE *f, struct dw_cfi_node *cfi); -extern void dwarf2out_decl (tree); extern void dwarf2out_emit_cfi (dw_cfi_ref cfi); extern void debug_dwarf (void);