This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
dwarf2 verbosity patch
- To: egcs-patches at egcs dot cygnus dot com
- Subject: dwarf2 verbosity patch
- From: Jason Merrill <jason at cygnus dot com>
- Date: Thu, 8 Jul 1999 18:08:23 -0700
To make the assembly output more readable. Applied to mainline.
Thu Jul 8 18:06:30 1999 Jason Merrill <jason@yorick.cygnus.com>
* dwarf2out.c (dwarf2out_line): Emit a line number comment after
the label if we're being verbose.
Index: dwarf2out.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/dwarf2out.c,v
retrieving revision 1.95
diff -c -p -r1.95 dwarf2out.c
*** dwarf2out.c 1999/07/07 00:15:59 1.95
--- dwarf2out.c 1999/07/09 01:07:43
*************** dwarf2out_line (filename, line)
*** 9844,9849 ****
--- 9844,9851 ----
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 line %d", ASM_COMMENT_START, line);
fputc ('\n', asm_out_file);
/* expand the line info table if necessary */
*************** dwarf2out_line (filename, line)
*** 9871,9876 ****
--- 9873,9880 ----
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 line %d", ASM_COMMENT_START, line);
fputc ('\n', asm_out_file);
/* Expand the line info table if necessary. */