* config/tc-ppc.c (md_assemble): Don't attempt to print NUL in
syntax error message.
This commit is contained in:
parent
b71fff680d
commit
5a93804749
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-07-28 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* config/tc-ppc.c (md_assemble): Don't attempt to print NUL in
|
||||||
|
syntax error message.
|
||||||
|
|
||||||
2010-07-27 Maciej W. Rozycki <macro@codesourcery.com>
|
2010-07-27 Maciej W. Rozycki <macro@codesourcery.com>
|
||||||
|
|
||||||
* config/tc-mips.c (mips16_macro_build): Pass "args" by
|
* config/tc-mips.c (mips16_macro_build): Pass "args" by
|
||||||
|
|
|
@ -2904,7 +2904,10 @@ md_assemble (char *str)
|
||||||
if (*str != endc
|
if (*str != endc
|
||||||
&& (endc != ',' || *str != '\0'))
|
&& (endc != ',' || *str != '\0'))
|
||||||
{
|
{
|
||||||
as_bad (_("syntax error; found `%c' but expected `%c'"), *str, endc);
|
if (*str == '\0')
|
||||||
|
as_bad (_("syntax error; end of line, expected `%c'"), endc);
|
||||||
|
else
|
||||||
|
as_bad (_("syntax error; found `%c', expected `%c'"), *str, endc);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue