From: Richard Kenner Date: Wed, 11 Jul 2001 14:04:27 +0000 (+0000) Subject: dwarf2out.c (dwarf2out_init, [...]): Add dummy version #ifndef DWARF2_DEBUGGING_INFO. X-Git-Tag: prereleases/libstdc++-3.0.95~3338 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c83830509b3fb2a8989950ea3844bf8f0e9c659f;p=thirdparty%2Fgcc.git dwarf2out.c (dwarf2out_init, [...]): Add dummy version #ifndef DWARF2_DEBUGGING_INFO. * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version #ifndef DWARF2_DEBUGGING_INFO. From-SVN: r43936 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eeedbaf0ce1d..15676f1d464f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 11 10:07:18 2001 Richard Kenner + + * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version + #ifndef DWARF2_DEBUGGING_INFO. + 2001-07-11 Richard Sandiford * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index f397fef1dbca..09a9e52dfbd8 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -366,10 +366,8 @@ expand_builtin_dwarf_fp_regnum () /* The target debug structure. */ -struct gcc_debug_hooks dwarf2_debug_hooks = -{ - dwarf2out_init, - dwarf2out_finish +struct gcc_debug_hooks dwarf2_debug_hooks + = {dwarf2out_init, dwarf2out_finish }; /* Return a pointer to a copy of the section string name S with all @@ -11589,4 +11587,22 @@ dwarf2out_finish (asm_out_file, input_filename) } } +#else /* DWARF2_DEBUGGING_INFO + +/* Use dummy versions of init and finish routines. */ + +static void +dwarf2out_init (asm_out_file, main_input_filename) + register FILE *asm_out_file ATTRIBUTE_UNUSED; + register const char *main_input_filename ATTRIBUTE_UNUSED; +{ +} + +static void +dwarf2out_finish (asm_out_file, input_filename) + register FILE *asm_out_file ATTRIBUTE_UNUSED; + register const char *input_filename ATTRIBUTE_UNUSED; +{ +} + #endif /* DWARF2_DEBUGGING_INFO */