diff options
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 4659490..d746b71 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1180,6 +1180,11 @@ assemble_variable (decl, top_level, at_end, dont_output_data) && DECL_CONTEXT (decl)) dwarfout_file_scope_decl (decl, 0); #endif +#ifdef DWARF2_DEBUGGING_INFO + if (write_symbols == DWARF2_DEBUG && top_level + && DECL_CONTEXT (decl)) + dwarf2out_file_scope_decl (decl, 0); +#endif } /* Only output DWARF debugging information for record-scope variables @@ -1308,6 +1313,11 @@ assemble_variable (decl, top_level, at_end, dont_output_data) && DECL_CONTEXT (decl)) dwarfout_file_scope_decl (decl, 0); #endif +#ifdef DWARF2_DEBUGGING_INFO + if (write_symbols == DWARF2_DEBUG && top_level + && DECL_CONTEXT (decl)) + dwarf2out_file_scope_decl (decl, 0); +#endif /* Only output DWARF debugging information for record-scope variables here. In the case of function-scope variables, the information |