* error msg tweak
2000-12-28 Frank Ch. Eigler <fche@redhat.com> * cgen-asm.in (parse_insn_normal): Print better error message for instructions with missing operands.
This commit is contained in:
parent
799051fc87
commit
149fe25ee9
2 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2000-12-28 Frank Ch. Eigler <fche@redhat.com>
|
||||
|
||||
* cgen-asm.in (parse_insn_normal): Print better error message for
|
||||
instructions with missing operands.
|
||||
|
||||
2000-12-21 Santeri Paavolainen <santtu@ssh.com>
|
||||
|
||||
* cgen-opc.c: Include alloca.h if HAVE_ALLOCA_H is defined.
|
||||
|
|
|
@ -127,7 +127,7 @@ parse_insn_normal (cd, insn, strp, fields)
|
|||
++ syn;
|
||||
++ str;
|
||||
}
|
||||
else
|
||||
else if (*str)
|
||||
{
|
||||
/* Syntax char didn't match. Can't be this insn. */
|
||||
static char msg [80];
|
||||
|
@ -136,6 +136,15 @@ parse_insn_normal (cd, insn, strp, fields)
|
|||
*syn, *str);
|
||||
return msg;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Ran out of input. */
|
||||
static char msg [80];
|
||||
/* xgettext:c-format */
|
||||
sprintf (msg, _("syntax error (expected char `%c', found end of instruction)"),
|
||||
*syn);
|
||||
return msg;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue