This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] dwarfout.c ASM_OUTPUT_DWARF_STRING_NEWLINE
- To: gcc-patches at gcc dot gnu dot org
- Subject: [PATCH] dwarfout.c ASM_OUTPUT_DWARF_STRING_NEWLINE
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Mon, 06 Aug 2001 11:48:00 -0400
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