]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: extend \+ support to .rept
authorJan Beulich <jbeulich@suse.com>
Mon, 10 Jun 2024 07:06:37 +0000 (09:06 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 10 Jun 2024 07:06:37 +0000 (09:06 +0200)
commit1e3c814459d83247707f8c9840ac660726cfaae0
tree9135b4011333ae2afc9c2b882a5f3f6f4d40cca8
parentd967140f8ca04a3fbe607382d615af35f9df9453
gas: extend \+ support to .rept

PR gas/31752

While not quite as macro-like as .irp / .irpc, this perhaps benefits from
supporting \+ even more than those: It allows, where desired, to get away
without maintaining an explicit count variable in source code.

Keep .rep (and custom per-arch uses of s_rept() / do_repeat()) behavior
unaltered.
gas/NEWS
gas/doc/as.texi
gas/read.c
gas/testsuite/gas/macros/macros.exp
gas/testsuite/gas/macros/rept-count.l [new file with mode: 0644]
gas/testsuite/gas/macros/rept-count.s [new file with mode: 0644]