(md_assemble): When parsing PPC_OPERAND_CR, add '%' to set of
chars that can start a name.
+2007-10-19 Alan Modra <amodra@bigpond.net.au>
+
+ * config/tc-ppc.c (ppc_parse_name): Skip leading '%'.
+ (md_assemble): When parsing PPC_OPERAND_CR, add '%' to set of
+ chars that can start a name.
+
2007-10-18 Carlos O'Donell <carlos@systemhalted.org>
* config/tc-hppa.c (pa_ip): Fix comment typo.
if (! cr_operand)
return 0;
+ if (*name == '%')
+ ++name;
val = reg_name_search (cr_names, sizeof cr_names / sizeof cr_names[0],
name);
if (val < 0)
{
if (! register_name (&ex))
{
+ char save_lex = lex_type['%'];
+
if ((operand->flags & PPC_OPERAND_CR) != 0)
- cr_operand = TRUE;
+ {
+ cr_operand = TRUE;
+ lex_type['%'] |= LEX_BEGIN_NAME;
+ }
expression (&ex);
cr_operand = FALSE;
+ lex_type['%'] = save_lex;
}
}