[PATCH] dwarfout.c ASM_OUTPUT_DWARF_STRING_NEWLINE
David Edelsohn
dje@watson.ibm.com
Mon Aug 6 08:48:00 GMT 2001
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
More information about the Gcc-patches
mailing list