]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: accept whitespace inside curly braces
authorJan Beulich <jbeulich@suse.com>
Fri, 19 Jul 2024 09:52:21 +0000 (11:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 19 Jul 2024 09:52:21 +0000 (11:52 +0200)
commit3fea91b17da717d19e73f073501307d2f0bbeb2b
tree446975de10fc3c478733c9246fffbd40a6ccbd72
parent0ff4e567db6c3c9da83073fe6abe27f561a2475b
x86: accept whitespace inside curly braces

Other than documented /**/ comments currently aren't really converted to
a single space, at least not for x86 in its most common configurations.
That'll be fixed subsequently, at which point blanks may appear where so
far none were expected. Furthermore not permitting blanks immediately
inside curly braces wasn't quite logical anyway - such constructs are
composite ones, and hence components ought to have been permitted to be
separated by whitespace from the very beginning.

With this we also don't care anymore whether the scrubber would remove
whitespace around curly braces, so move them from extra_symbol_chars[]
to operand_special_chars[].

Note: The new testcase doesn't actually exercise much (if any) of the
added code. It is being put in place to ensure that subsequently, when
that code actually comes into play, behavior remains the same.
gas/config/tc-i386.c
gas/testsuite/gas/i386/curly.d [new file with mode: 0644]
gas/testsuite/gas/i386/curly.s [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp