[Bug target/96536] -fcf-protection code in i386.md:restore_stack_nonlocal uses invalid compare-and-jump rtl

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 18 15:32:28 GMT 2020


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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Uros Bizjak <uros@gcc.gnu.org>:

https://gcc.gnu.org/g:f8104bb9dc2365d268ca93e43a24f42e8314fcc1

commit r11-2739-gf8104bb9dc2365d268ca93e43a24f42e8314fcc1
Author: Uros Bizjak <ubizjak@gmail.com>
Date:   Tue Aug 18 17:31:49 2020 +0200

    i386: Rewrite restore_stack_nonlocal expander [PR96536].

    -fcf-protection code in restore_stack_nonlocal uses a branch based on
    a clobber result.  The patch adds missing compare and completely
    rewrites the expander to use high-level functions in RTL construction.

    2020-08-18  Uroš Bizjak  <ubizjak@gmail.com>

    gcc/ChangeLog:

            PR target/96536
            * config/i386/i386.md (restore_stack_nonlocal): Add missing compare
            RTX.  Rewrite expander to use high-level functions in RTL
construction.


More information about the Gcc-bugs mailing list