* genflags.c (gen_insn): Use IS_VSPACE.
* genoutput.c (output_insn_data): Likewise.
(process_template): Likewise.
From-SVN: r50616
+2002-03-11 Chris Meyer <cmeyer@gatan.com>
+
+ * genflags.c (gen_insn): Use IS_VSPACE.
+ * genoutput.c (output_insn_data): Likewise.
+ (process_template): Likewise.
+
2002-03-11 Richard Henderson <rth@redhat.com>
* toplev.c (rest_of_compilation): Don't compile if we've had errors.
printf ("(");
for (p = XSTR (insn, 2); *p; p++)
{
- if (*p == '\n')
+ if (IS_VSPACE (*p))
printf (" \\\n");
else
printf ("%c", *p);
printf (" \"");
while (*p)
{
- if (*p == '\n' && prev != '\\')
- printf ("\\n\\\n");
+ if (IS_VSPACE (*p) && prev != '\\')
+ {
+ /* Preserve two consecutive \n's or \r's, but treat \r\n
+ as a single newline. */
+ if (*p == '\n' && prev != '\r')
+ printf ("\\n\\\n");
+ }
else
putchar (*p);
prev = *p;
for (i = 0, cp = &template[1]; *cp; )
{
- while (*cp == '\n' || *cp == ' ' || *cp== '\t')
+ while (ISSPACE (*cp))
cp++;
printf (" \"");
- while (*cp != '\n' && *cp != '\0')
+ while (!IS_VSPACE (*cp) && *cp != '\0')
{
putchar (*cp);
cp++;