Commit 212d447c by Denis Chertykov Committed by Hans-Peter Nilsson

genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while outputting…

genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while outputting templates with many lines.

2000-09-10  Denis Chertykov  <denisc@overta.ru>

	* genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
	outputting templates with many lines.

From-SVN: r36299
parent a746dbf5
2000-09-10 Denis Chertykov <denisc@overta.ru>
* genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
outputting templates with many lines.
2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
......
......@@ -352,7 +352,22 @@ output_insn_data ()
printf (" 0,\n");
break;
case INSN_OUTPUT_FORMAT_SINGLE:
printf (" \"%s\",\n", d->template);
{
const char *p = d->template;
char prev = 0;
printf (" \"");
while (*p)
{
if (*p == '\n' && prev != '\\')
printf ("\\n\\\n");
else
putchar (*p);
prev = *p;
++p;
}
printf ("\",\n");
}
break;
case INSN_OUTPUT_FORMAT_MULTI:
case INSN_OUTPUT_FORMAT_FUNCTION:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment