OSDN Git Service

gas/
authorjbeulich <jbeulich>
Fri, 6 May 2005 06:50:27 +0000 (06:50 +0000)
committerjbeulich <jbeulich>
Fri, 6 May 2005 06:50:27 +0000 (06:50 +0000)
commit1305e3b7c07fa401a1b4a0e7bdb7f9d69f8e3087
tree298387587a20bc91765bf56b77e079b896c7b323
parentea58dd2b205eb4dfd516238556fe8b798d2f7e99
gas/
2005-05-06  Jan Beulich  <jbeulich@novell.com>

* macro.c (new_formal, del_formal): New.
(do_formals): Use new_formal. Check for and parse qualifier. Warn if
required argument has default value. Stop looking for more formal
when there was a vararg one.
(macro_expand_body): Use new_formal and del_formal.
(macro_expand): Likewise. Initialize local variable err. Don't
return immediately when encountering an error. Warn when keyword
argument already had a value assigned. Eliminate duplicate clearing
of argument value. When current positional argument matches parameter
of vararg type, assign to it all the remaining arguments. Issue error
when required parameter does not have value.
(free_macro): Use del_formal.
(expand_irp): Initialize formal type. Free buffers associated with
formal prior to returning.
* macro.h (struct formal_struct): Add new field 'type' with new
enumeration type 'formal_type'.
* doc/as.texinfo: Document macro parameter qualifiers.
* NEWS: Mention new functionality.

gas/testsuite/
2005-05-06  Jan Beulich  <jbeulich@novell.com>

* gas/macros/badarg.s: Add check for bad qualifier specification.
* gas/macros/badarg.l: Adjust.
* gas/macros/vararg.[sd]: New.
* gas/macros/macros.exp: Run new test.
gas/ChangeLog
gas/NEWS
gas/doc/as.texinfo
gas/macro.c
gas/macro.h
gas/testsuite/ChangeLog
gas/testsuite/gas/macros/badarg.l
gas/testsuite/gas/macros/badarg.s
gas/testsuite/gas/macros/macros.exp
gas/testsuite/gas/macros/vararg.d [new file with mode: 0644]
gas/testsuite/gas/macros/vararg.s [new file with mode: 0644]