to use for condition codes, and recognises other registers when
-mregnames. */
-int
+void
ppc_parse_name (const char *name, expressionS *exp, enum expr_mode mode)
{
const struct pd_reg *reg = NULL;
exp->X_op = O_register;
exp->X_add_number = reg->value;
exp->X_md = reg->flags;
- return true;
+ return;
}
/* The following replaces code in expr.c operand() after the
exp->X_add_symbol = sym;
exp->X_add_number = 0;
}
-
- return true;
}
/* Propagate X_md and check register expressions. This is to support
/* call md_pcrel_from_section, not md_pcrel_from */
#define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section(FIX, SEC)
-#define md_parse_name(name, exp, mode, c) ppc_parse_name (name, exp, mode)
-extern int ppc_parse_name (const char *, struct expressionS *, enum expr_mode);
+#define md_parse_name(name, exp, mode, c) \
+ (ppc_parse_name (name, exp, mode), true)
+extern void ppc_parse_name (const char *, struct expressionS *, enum expr_mode);
#define md_optimize_expr(left, op, right) ppc_optimize_expr (left, op, right)
extern int ppc_optimize_expr (expressionS *, operatorT, expressionS *);