x86: Always update EH return address in word_mode
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 20 Aug 2018 19:14:04 +0000 (19:14 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 20 Aug 2018 19:14:04 +0000 (12:14 -0700)
commita31505a339c847f0073c0ce9223a2b3c9bec6cef
tree12a726c186f64d38dff8136282b9a6ecf9908d37
parent846d943b4592561743d86ae90a9320b3ea03378c
x86: Always update EH return address in word_mode

On x86, return address is always popped in word_mode.  eh_return needs
to put EH return address in word_mode on stack.

gcc/

PR target/87014
* config/i386/i386.md (eh_return): Always update EH return
address in word_mode.

gcc/testsuite/

PR target/87014
* g++.dg/torture/pr87014.C: New file.

From-SVN: r263672
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr87014.C [new file with mode: 0644]