From: Tom de Vries Date: Sat, 18 Nov 2017 23:30:50 +0000 (+0000) Subject: [vms] Add missing vmsdbgout_early_finish X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33f4e967a17e66efee742be0a1e940bb23936afc;p=gcc.git [vms] Add missing vmsdbgout_early_finish 2017-11-19 Tom de Vries PR target/82961 * vmsdbgout.c (vmsdbgout_early_finish): New function. (vmsdbg_debug_hooks): Set early_finish field to vmsdbgout_early_finish. From-SVN: r254920 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60689054d05..fa44fd5413d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-11-19 Tom de Vries + + PR target/82961 + * vmsdbgout.c (vmsdbgout_early_finish): New function. + (vmsdbg_debug_hooks): Set early_finish field to vmsdbgout_early_finish. + 2017-11-18 Jan Hubicka * cgraphclones.c (cgraph_edge::clone): Rename gcov_count to prof_count. diff --git a/gcc/vmsdbgout.c b/gcc/vmsdbgout.c index 580dd284016..91dcd2e3910 100644 --- a/gcc/vmsdbgout.c +++ b/gcc/vmsdbgout.c @@ -147,6 +147,7 @@ static int write_srccorrs (int); static void vmsdbgout_init (const char *); static void vmsdbgout_finish (const char *); +static void vmsdbgout_early_finish (const char *); static void vmsdbgout_assembly_start (void); static void vmsdbgout_define (unsigned int, const char *); static void vmsdbgout_undef (unsigned int, const char *); @@ -176,7 +177,7 @@ static void vmsdbgout_abstract_function (tree); const struct gcc_debug_hooks vmsdbg_debug_hooks = {vmsdbgout_init, vmsdbgout_finish, - debug_nothing_charstar, + vmsdbgout_early_finish, vmsdbgout_assembly_start, vmsdbgout_define, vmsdbgout_undef, @@ -1556,6 +1557,13 @@ vmsdbgout_abstract_function (tree decl) (*dwarf2_debug_hooks.outlining_inline_function) (decl); } +static void +vmsdbgout_early_finish (const char *filename) +{ + if (write_symbols == VMS_AND_DWARF2_DEBUG) + (*dwarf2_debug_hooks.early_finish) (filename); +} + /* Output stuff that Debug requires at the end of every file and generate the VMS Debug debugging info. */