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]

[PATCH] dwarfout.c ASM_OUTPUT_DWARF_STRING_NEWLINE


	It appears that the ASM_OUTPUT_DWARF_STRING_NEWLINE macro contains
a thinko.  Isn't the intent to emit the string and then a newline to begin
another line in the assembly output file?  As currently written, the
newline is emitted as an additional character in the string itself which
doesn't make sense.

David


	* dwarfout.c (ASM_OUTPUT_DWARF_STRING_NEWLINE): Emit trailing
	newline directly to file, not within string.

Index: dwarfout.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dwarfout.c,v
retrieving revision 1.94
diff -c -p -r1.94 dwarfout.c
*** dwarfout.c	2001/08/01 22:27:04	1.94
--- dwarfout.c	2001/08/06 15:42:31
*************** static void retry_incomplete_types	PARAM
*** 1369,1375 ****
    ASM_OUTPUT_ASCII ((FILE), P, strlen (P)+1)
  #else
  #define ASM_OUTPUT_DWARF_STRING_NEWLINE(FILE,P) \
!   ASM_OUTPUT_DWARF_STRING (FILE,P), ASM_OUTPUT_DWARF_STRING (FILE,"\n") 
  #endif
  
  
--- 1369,1375 ----
    ASM_OUTPUT_ASCII ((FILE), P, strlen (P)+1)
  #else
  #define ASM_OUTPUT_DWARF_STRING_NEWLINE(FILE,P) \
!   ASM_OUTPUT_DWARF_STRING (FILE,P), fputc ('\n', (FILE))
  #endif
  
  


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