Commit 1b2c9988 by Richard Kenner

(ASM_OUTPUT_ASCII): Fix bug when first character of string constant is

single quote.

From-SVN: r7800
parent 2c47b58a
......@@ -1170,16 +1170,12 @@ enum reg_class
{ \
if (j % MVS_ASCII_TEXT_LENGTH == 0) \
fprintf (FILE, "\tDC\tC'%c", c); \
else \
{ \
if ( c == '\'' ) \
fprintf (FILE, "%c%c", c, c); \
else \
fprintf (FILE, "%c", c); \
if (j % MVS_ASCII_TEXT_LENGTH \
== MVS_ASCII_TEXT_LENGTH - 1) \
fprintf (FILE, "'\n" ); \
} \
if ( c == '\'' ) \
fprintf (FILE, "%c%c", c, c); \
else \
fprintf (FILE, "%c", c); \
if (j % MVS_ASCII_TEXT_LENGTH == MVS_ASCII_TEXT_LENGTH - 1) \
fprintf (FILE, "'\n" ); \
} \
} \
if (j % MVS_ASCII_TEXT_LENGTH != 0) \
......
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