* config/tc-hppa.c (pa_parse_fp_cmp_cond): Report an error
on a partial completer match.
This commit is contained in:
parent
60b3e2812a
commit
ee8b834600
2 changed files with 18 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue May 17 12:50:46 1994 Jeff Law (law@snake.cs.utah.edu)
|
||||
|
||||
* config/tc-hppa.c (pa_parse_fp_cmp_cond): Report an error
|
||||
on a partial completer match.
|
||||
|
||||
Mon May 16 12:03:49 1994 Jeff Law (law@snake.cs.utah.edu)
|
||||
|
||||
* config/tc-hppa.c: Change .hppa_unwind to .PARISC.unwind
|
||||
|
|
|
@ -3293,13 +3293,25 @@ pa_parse_fp_cmp_cond (s)
|
|||
{
|
||||
cond = fp_cond_map[i].cond;
|
||||
*s += strlen (fp_cond_map[i].string);
|
||||
/* If not a complete match, back up the input string and
|
||||
report an error. */
|
||||
if (**s != ' ' && **s != '\t')
|
||||
{
|
||||
*s -= strlen (fp_cond_map[i].string);
|
||||
break;
|
||||
}
|
||||
while (**s == ' ' || **s == '\t')
|
||||
*s = *s + 1;
|
||||
return cond;
|
||||
}
|
||||
}
|
||||
|
||||
as_bad ("Invalid FP Compare Condition: %c", **s);
|
||||
as_bad ("Invalid FP Compare Condition: %s", *s);
|
||||
|
||||
/* Advance over the bogus completer. */
|
||||
while (**s != ',' && **s != ' ' && **s != '\t')
|
||||
*s += 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue