diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-06 19:33:02 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-06 19:33:02 +0000 |
commit | 9b1f6100a5495abc011d2d09f36664a8e91ac562 (patch) | |
tree | bfd1b87e4ae8e2f6d6b7d308e1af1e39430eef96 /gcc/dwarf2out.c | |
parent | 1d9c8547e0c11e61b71a10fbbc1b15173427ff4d (diff) | |
download | gcc-9b1f6100a5495abc011d2d09f36664a8e91ac562.tar.gz |
PR debug/24070
* dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
(dwarf2out_start_source_file): Print it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105051 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 63f2f984bbc..7ee5edb6a65 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -13373,7 +13373,7 @@ lookup_filename (const char *file_name) prune_unused_types_walk_attribs. */ if (DWARF2_ASM_LINE_DEBUG_INFO && ! flag_eliminate_unused_debug_types) - maybe_emit_file (i); + return maybe_emit_file (i); return i; } @@ -13591,13 +13591,15 @@ dwarf2out_start_source_file (unsigned int lineno, const char *filename) if (debug_info_level >= DINFO_LEVEL_VERBOSE) { + int fileno; + named_section_flags (DEBUG_MACINFO_SECTION, SECTION_DEBUG); dw2_asm_output_data (1, DW_MACINFO_start_file, "Start new file"); dw2_asm_output_data_uleb128 (lineno, "Included from line number %d", lineno); - maybe_emit_file (lookup_filename (filename)); - dw2_asm_output_data_uleb128 (lookup_filename (filename), - "Filename we just started"); + + fileno = maybe_emit_file (lookup_filename (filename)); + dw2_asm_output_data_uleb128 (fileno, "Filename we just started"); } } |