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

--- Comment #24 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Qing Zhao <qinz...@gcc.gnu.org>:

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

commit r11-4741-gcc32e81cdbb7696cd571bdb5ffe52f228f125df5
Author: qing zhao <qinz...@gcc.gnu.org>
Date:   Thu Nov 5 15:57:46 2020 +0100

    i386: Fix PR97715

    This change fixes a bug in the i386 backend when adding
    -fzero-call-used-regs=all on a target that has no x87
    registers.

    When there is no x87 registers available, we should not
    zero stack registers.

    gcc/ChangeLog:

            PR target/97715
            * config/i386/i386.c (zero_all_st_registers): Return
            earlier when the FPU is disabled.

    gcc/testsuite/ChangeLog:

            PR target/97715
            * gcc.target/i386/zero-scratch-regs-32.c: New test.

Reply via email to