[PATCH] ia64: minor code simplification
Jan Beulich
jbeulich@novell.com
Tue Sep 25 16:03:00 GMT 2007
Built and tested on ia64-unknown-linux-gnu.
gas/
2007-09-25 Jan Beulich <jbeulich@novell.com>
* config/tc-ia64.c (dot_pred_rel): Replace specialized handling
with simple call to parse_operand.
--- /home/jbeulich/src/binutils/mainline/2007-09-25/gas/config/tc-ia64.c 2007-08-22 11:01:53.000000000 +0200
+++ 2007-09-25/gas/config/tc-ia64.c 2007-08-29 09:27:53.000000000 +0200
@@ -5282,14 +5282,13 @@ dot_pred_rel (type)
SKIP_WHITESPACE ();
}
- SKIP_WHITESPACE ();
while (1)
{
valueT bits = 1;
- int regno;
+ int sep, regno;
expressionS pr, *pr1, *pr2;
- expression_and_evaluate (&pr);
+ sep = parse_operand (&pr, ',');
if (pr.X_op == O_register
&& pr.X_add_number >= REG_P
&& pr.X_add_number <= REG_P + 63)
@@ -5336,10 +5335,8 @@ dot_pred_rel (type)
if (mask & bits)
as_warn (_("Duplicate predicate register ignored"));
mask |= bits;
- if (*input_line_pointer != ',')
+ if (sep != ',')
break;
- ++input_line_pointer;
- SKIP_WHITESPACE ();
}
switch (type)
More information about the Binutils
mailing list