gas/
authorJan Beulich <jbeulich@novell.com>
Mon, 31 Jan 2005 14:26:13 +0000 (14:26 +0000)
committerJan Beulich <jbeulich@novell.com>
Mon, 31 Jan 2005 14:26:13 +0000 (14:26 +0000)
commit057f53c1ad39b24d7833c2eb23aec562c8c3a002
tree26ad7ac7ca6bb3f17d7783ea997decae5fdd9aac
parente87b2913a34b6a601214f3b3634e9c8949276526
gas/
2005-01-31  Jan Beulich  <jbeulich@novell.com>

* macro.c (do_formals): Adjust to no longer accept empty parameter
names.
(define_macro): Adjust to no longer accept empty macro name, garbage
following the parameters, or macros that were previously defined.
* read.c (s_bad_end): Declare.
(potable): Add endm. Handler for endr and endm is s_bad_end.
(s_bad_end): Rename from s_bad_endr. Adjust to handle both .endm
and .endr.
* read.h (s_bad_endr): Remove.

gas/testsuite/
2005-01-31  Jan Beulich  <jbeulich@novell.com>

* gas/macros/badarg.[ls]: New.
* gas/macros/end.[ls]: New.
* gas/macros/redef.[ls]: New.
* gas/macros/macros.exp (run_list_test): Copy from elsewhere.
Run new tests.
12 files changed:
gas/ChangeLog
gas/macro.c
gas/read.c
gas/read.h
gas/testsuite/ChangeLog
gas/testsuite/gas/macros/badarg.l [new file with mode: 0644]
gas/testsuite/gas/macros/badarg.s [new file with mode: 0644]
gas/testsuite/gas/macros/end.l [new file with mode: 0644]
gas/testsuite/gas/macros/end.s [new file with mode: 0644]
gas/testsuite/gas/macros/macros.exp
gas/testsuite/gas/macros/redef.l [new file with mode: 0644]
gas/testsuite/gas/macros/redef.s [new file with mode: 0644]