]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: make symbol quotation check consistent in i386_att_operand()
authorJan Beulich <jbeulich@suse.com>
Mon, 7 Jun 2021 10:03:32 +0000 (12:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 7 Jun 2021 10:03:32 +0000 (12:03 +0200)
commit9d299bea8cca3bfd91a3c7a47510c52a9e829858
tree69ea736234165bda8e0922c83669213a7dabbc36
parentc8d541e2e73493228f332f4bdc9ecc8164d3744f
x86: make symbol quotation check consistent in i386_att_operand()

When d02603dc201f ("Allow symbol and label names to be enclosed in
double quotes") added the check for a leading double quote to
i386_att_operand(), it missed a second similar check after having found
a segment override. To avoid the two checks going out of sync again,
introduce an inline helper.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/quoted.d [new file with mode: 0644]
gas/testsuite/gas/i386/quoted.s [new file with mode: 0644]