From 33f4e967a17e66efee742be0a1e940bb23936afc Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Sat, 18 Nov 2017 23:30:50 +0000 Subject: [PATCH] [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 --- gcc/ChangeLog | 6 ++++++ gcc/vmsdbgout.c | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) 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. */ -- 2.30.2