]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86-64: also diagnose far returns / IRET with ambiguous operand size
authorJan Beulich <jbeulich@suse.com>
Thu, 30 Jan 2020 10:35:20 +0000 (11:35 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 30 Jan 2020 10:35:20 +0000 (11:35 +0100)
commit873494c89fb44747c7514687da25fc163c791b84
treed20e4524665299372a44efa3e99a4a91926ed792
parent62b3f54810e4065cdfe420141df34c97b5abb165
x86-64: also diagnose far returns / IRET with ambiguous operand size

Other than near returns these default to 32-bit operand size, and hence
it isn't really unlikely that 64-bit forms are meant. Hence these should
have disambiguating suffixes. In Intel mode, however, don't error in
these cases unconditionally - MASM accepts these without suffix _and_
without warning.
17 files changed:
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/k1om.d
gas/testsuite/gas/i386/l1om.d
gas/testsuite/gas/i386/noreg64.d
gas/testsuite/gas/i386/noreg64.l
gas/testsuite/gas/i386/noreg64.s
gas/testsuite/gas/i386/x86-64-opcode.d
gas/testsuite/gas/i386/x86-64-opcode.s
gas/testsuite/gas/i386/x86-64-suffix-intel.d
gas/testsuite/gas/i386/x86-64-suffix.d
gas/testsuite/gas/i386/x86-64-suffix.e [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-suffix.s
gas/testsuite/gas/i386/x86_64-intel.d
gas/testsuite/gas/i386/x86_64.d
gas/testsuite/gas/i386/x86_64.e [new file with mode: 0644]
gas/testsuite/gas/i386/x86_64.s