Commit 37c67319 by Geoff Keating Committed by Geoffrey Keating

rs6000.c (output_cbranch): Escape '%' characters so output_operand doesn't see them.

* config/rs6000/rs6000.c (output_cbranch): Escape '%' characters
so output_operand doesn't see them.

From-SVN: r34244
parent 1270c255
2000-05-28 Geoff Keating <geoffk@cygnus.com>
* config/rs6000/rs6000.c (output_cbranch): Escape '%' characters
so output_operand doesn't see them.
Sun May 28 18:37:07 2000 Clinton Popetz <cpopetz@cygnus.com>
* lcm.c (make_preds_opaque): Fix comment.
......@@ -4115,6 +4115,10 @@ output_cbranch (op, label, reversed, insn)
else
s += sprintf (s, "{b%s|b%s%s} ", ccode, ccode, pred);
/* We need to escape any '%' characters in the reg_names string.
Assume they'd only be the first character... */
if (reg_names[cc_regno + CR0_REGNO][0] == '%')
*s++ = '%';
s += sprintf (s, "%s", reg_names[cc_regno + CR0_REGNO]);
if (label != NULL)
......
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