PR gas/11834

* macro.c (macro_expand): Recover gracefully from named args that
	don't match params.
This commit is contained in:
Alan Modra 2010-07-23 06:44:25 +00:00
parent 3895431c5c
commit c0ba1095fd
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2010-07-23 Alan Modra <amodra@gmail.com>
PR gas/11834
* macro.c (macro_expand): Recover gracefully from named args that
don't match params.
2010-07-22 Thomas Schwinge <thomas@codesourcery.com>
Switch MIPS to 32-bit DWARF format.

View File

@ -1072,9 +1072,13 @@ macro_expand (int idx, sb *in, macro_entry *m, sb *out)
/* Lookup the formal in the macro's list. */
ptr = (formal_entry *) hash_find (m->formal_hash, sb_terminate (&t));
if (!ptr)
as_bad (_("Parameter named `%s' does not exist for macro `%s'"),
t.ptr,
m->name);
{
as_bad (_("Parameter named `%s' does not exist for macro `%s'"),
t.ptr,
m->name);
sb_reset (&t);
idx = get_any_string (idx + 1, in, &t);
}
else
{
/* Insert this value into the right place. */