diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-06-07 12:03:32 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2021-06-07 12:03:32 +0200 |
commit | 9d299bea8cca3bfd91a3c7a47510c52a9e829858 (patch) | |
tree | 69ea736234165bda8e0922c83669213a7dabbc36 /gas/ChangeLog | |
parent | c8d541e2e73493228f332f4bdc9ecc8164d3744f (diff) | |
download | gdb-9d299bea8cca3bfd91a3c7a47510c52a9e829858.zip gdb-9d299bea8cca3bfd91a3c7a47510c52a9e829858.tar.gz gdb-9d299bea8cca3bfd91a3c7a47510c52a9e829858.tar.bz2 |
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.
Diffstat (limited to 'gas/ChangeLog')
-rw-r--r-- | gas/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 008027b..b5686ee 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,12 @@ 2021-06-07 Jan Beulich <jbeulich@suse.com> + * config/tc-i386.c (starts_memory_operand): New. + (i386_att_operand): Use it. + * testsuite/gas/i386/quoted.s, testsuite/gas/i386/quoted.d: New. + * testsuite/gas/i386/i386.exp: Run new test. + +2021-06-07 Jan Beulich <jbeulich@suse.com> + * config/tc-i386.c (i386_att_operand): Flip checking for '*' and start-of-expression. Don't permit '*' when one was already seen. |