From 9d299bea8cca3bfd91a3c7a47510c52a9e829858 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 7 Jun 2021 12:03:32 +0200 Subject: 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 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gas/ChangeLog') 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 + * 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 + * config/tc-i386.c (i386_att_operand): Flip checking for '*' and start-of-expression. Don't permit '*' when one was already seen. -- cgit v1.1