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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <h...@gcc.gnu.org>:

https://gcc.gnu.org/g:3f04e3782536ad2f9cfbb8cfe6630e9f9dd8af4c

commit r12-1409-g3f04e3782536ad2f9cfbb8cfe6630e9f9dd8af4c
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Fri Jun 11 07:31:29 2021 -0700

    x86: Replace ix86_red_zone_size with ix86_red_zone_used

    Add red_zone_used to machine_function to track if red zone is used.
    When expanding function prologue, set red_zone_used to true if red
    zone is used.

    gcc/

            PR target/101023
            * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
            to true if red zone is used.
            (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
            ix86_red_zone_used.
            * config/i386/i386.h (machine_function): Add red_zone_used.
            (ix86_red_zone_size): Removed.
            (ix86_red_zone_used): New.
            * config/i386/i386.md (peephole2 patterns): Replace
            ix86_red_zone_size with ix86_red_zone_used.

    gcc/testsuite/

            PR target/101023
            * g++.target/i386/pr101023a.C: New test.
            * g++.target/i386/pr101023b.C: Likewise.

Reply via email to