This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

dwarf2 verbosity patch


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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]