]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: have scrubber also respect quoted labels
authorJan Beulich <jbeulich@suse.com>
Fri, 9 Aug 2024 09:48:05 +0000 (11:48 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Aug 2024 09:48:05 +0000 (11:48 +0200)
commit8d627d3b319fb0110e2e8f018202b8f231d56411
treef1cc5a5aafc79371660b04dfb39237313689634d
parent04c9cf0a8c5f03e5a1bb91a954cc42eb83a3e493
gas: have scrubber also respect quoted labels

For the handling of ':' elsewhere in the scrubber to be correct with
regard to labels, the state after parsing a string found at the start of
a line must match that after finding a symbol character at the start of
a line. (Things are largely okay when there's whitespace ahead of the
label: Whitespace after the colon then is retained rather than dropped
for typical targets like x86, but read.c will know to deal with that.)
gas/app.c
gas/testsuite/gas/all/gas.exp
gas/testsuite/gas/all/quoted-label-blank.d [new file with mode: 0644]
gas/testsuite/gas/all/quoted-label-blank.s [new file with mode: 0644]