This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Small PATCH to dwarf2out.c
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Subject: Small PATCH to dwarf2out.c
- From: Jason Merrill <jason_merrill at redhat dot com>
- Date: 10 Jul 2001 16:44:09 +0100
".loc 1 82 0" isn't terribly helpful if I don't know what file 1 is; as
long as we're emitting verbose commentary, we might as well have this one
as well.
2001-07-10 Jason Merrill <jason_merrill@redhat.com>
* dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
.loc support.
*** dwarf2out.c.~1~ Thu Jul 5 18:03:58 2001
--- dwarf2out.c Tue Jul 10 15:24:37 2001
*************** dwarf2out_line (filename, line)
*** 11202,11207 ****
--- 11202,11212 ----
{
function_section (current_function_decl);
+ /* If requested, emit something human-readable. */
+ if (flag_debug_asm)
+ fprintf (asm_out_file, "\t%s %s:%d\n", ASM_COMMENT_START,
+ filename, line);
+
if (DWARF2_ASM_LINE_DEBUG_INFO)
{
unsigned file_num = lookup_filename (filename);
*************** dwarf2out_line (filename, line)
*** 11221,11229 ****
register dw_separate_line_info_ref line_info;
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, SEPARATE_LINE_CODE_LABEL,
separate_line_info_table_in_use);
- if (flag_debug_asm)
- fprintf (asm_out_file, "\t%s %s:%d\n", ASM_COMMENT_START,
- filename, line);
/* expand the line info table if necessary */
if (separate_line_info_table_in_use
--- 11226,11231 ----
*************** dwarf2out_line (filename, line)
*** 11250,11258 ****
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, LINE_CODE_LABEL,
line_info_table_in_use);
- if (flag_debug_asm)
- fprintf (asm_out_file, "\t%s %s:%d\n", ASM_COMMENT_START,
- filename, line);
/* Expand the line info table if necessary. */
if (line_info_table_in_use == line_info_table_allocated)
--- 11252,11257 ----