i386: Issue a warning to IRET without suffix for .code16gcc
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 2 May 2019 17:46:55 +0000 (10:46 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 2 May 2019 17:47:04 +0000 (10:47 -0700)
commit06f74c5cb868cfd37af3e680d29784c217700bdf
treecb19afcc9839414386df4b0e684604ea6d2a17ae
parentb8c05e85ef4ce9610a3a43198180cf24aea327cb
i386: Issue a warning to IRET without suffix for .code16gcc

The .code16gcc directive to support 16-bit mode with 32-bit address.
For IRET without a suffix, generate 16-bit IRET with a warning to
return from an interrupt handler in 16-bit mode.

PR gas/24485
* config/tc-i386.c (process_suffix): Issue a warning to IRET
without a suffix for .code16gcc.
* testsuite/gas/i386/jump16.s: Add tests for iretX.
* testsuite/gas/i386/jump16.d: Updated.
* testsuite/gas/i386/jump16.e: New file.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/jump16.d
gas/testsuite/gas/i386/jump16.e [new file with mode: 0644]
gas/testsuite/gas/i386/jump16.s