[Bug target/87014] [x32] __builtin_eh_return should use 64-bit mov to set return address

hjl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 21 16:18:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87014

--- Comment #8 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Tue Aug 21 16:17:35 2018
New Revision: 263743

URL: https://gcc.gnu.org/viewcvs?rev=263743&root=gcc&view=rev
Log:
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.

Added:
    branches/gcc-8-branch/gcc/testsuite/g++.dg/torture/pr87014.C
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/config/i386/i386.md
    branches/gcc-8-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list