x86: handle SVR4 escaped binary operators
authorJan Beulich <jbeulich@suse.com>
Mon, 20 Jul 2020 06:57:18 +0000 (08:57 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 20 Jul 2020 06:57:18 +0000 (08:57 +0200)
commitb3983e5f53caad175563f8c842f2ab2a1277c2bc
tree6d5e3343f11a36633999b33996e210b4edd1650e
parent750e4bf70f2caab39dc5d0a1b2d26c9ca1fbd909
x86: handle SVR4 escaped binary operators

PR gas/4572

When / is a comment character, its use as binary "divide" operator needs
escaping by a backslash. Besides the scrubber needing to support this
(addressed in an earlier change), there are also a few provisions needed
in target specific operator handling.

As the spec calls for % and * to also be escaped because of being
"overloaded", also recognize these, despite the overloading there not
really preventing their use as operators in most (%) or all (*) cases,
given the way how the rest of the assembler works.

To bring source and testsuite in line, also drop the TE_I386AIX part of
the respective conditional, as i?86-*-aix* support had been removed a
while ago.
gas/ChangeLog
gas/config/tc-i386-intel.c
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/svr4.d [new file with mode: 0644]
gas/testsuite/gas/i386/svr4.s [new file with mode: 0644]