]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: adjust handling of quotes for .irpc
authorJan Beulich <jbeulich@suse.com>
Fri, 24 May 2024 10:22:54 +0000 (12:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 May 2024 10:22:54 +0000 (12:22 +0200)
commit69cab370cf666f2e7692158ac7dffc6a65207f4a
tree4dd137ffc1e93812fd03210c7baf545e88f9891c
parent6b15ec516579f8005e97d58ec06b1c98debf947b
gas: adjust handling of quotes for .irpc

The present handling of inner double quotes can lead to very strange
diagnostics. Follow one of the two possible interpretations of the doc:
@dots{} referring to possibly multiple white space separated
@var{values}, each of which may be quoted. The original implementation,
prior to 465e5617233f ("PR gas/3856"), hints at the other possible
interpretation: When quoted there's only a single @var{values}, with
inner quotes taken as ordinary characters. That, however, seems overall
less useful to me.

While touching the documentation, mirror the (inverse) spelling
correction (@section line inconsistent with actual description) to .irp
as well.
gas/doc/as.texi
gas/macro.c
gas/testsuite/gas/macros/irpc-quote.l [new file with mode: 0644]
gas/testsuite/gas/macros/irpc-quote.s [new file with mode: 0644]
gas/testsuite/gas/macros/macros.exp