]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: Always update EH return address in word_mode
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 21 Aug 2018 16:27:22 +0000 (16:27 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 21 Aug 2018 16:27:22 +0000 (09:27 -0700)
commit10e3ee083f12c33aebefa9d07de255bf7bbb77ed
tree7ca5b7083f08765205821cb1329af997374dcc47
parent8f60cfe0eb0979caee9968c947f0b7ebf4796e1f
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/

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

gcc/testsuite/

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

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