x86/Intel: issue diagnostics for redundant segment override prefixes
authorJan Beulich <jbeulich@novell.com>
Thu, 30 Nov 2017 10:46:26 +0000 (11:46 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 30 Nov 2017 10:46:26 +0000 (11:46 +0100)
commitfd4e0347596acf79642625f4faad9e37c8fa0f0e
tree39f2f84e62f63adca731c80fa49179dc460c847e
parente21440ba622e17a2f12a858a87a6a75ef90654ca
x86/Intel: issue diagnostics for redundant segment override prefixes

While we shouldn't outright reject such (as was wrongly done by commit
4d36230d59 ("x86: Update segment register check in Intel syntax"), as
MASM accepts them even silently, issue (by default) a warning for such
questionable constructs.
gas/ChangeLog
gas/config/tc-i386-intel.c
gas/testsuite/gas/i386/intelok.d
gas/testsuite/gas/i386/intelok.e [new file with mode: 0644]
gas/testsuite/gas/i386/inval-seg.l
gas/testsuite/gas/i386/inval-seg.s