[Bug target/88343] [7/8 Regression] R31 is unconditionally saved/restored on powerpc-darwin even when it's not necessary.

iains at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Dec 23 21:18:00 GMT 2018


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

--- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> ---
Author: iains
Date: Sun Dec 23 21:17:46 2018
New Revision: 267387

URL: https://gcc.gnu.org/viewcvs?rev=267387&root=gcc&view=rev
Log:
fix PR target/88343 by backporting r267049

The PR is about unnecessary saves of the pic base
register, it shows on m32 Linux and m32/m64 Darwin.

2018-12-23  Iain Sandoe  <iain@sandoe.co.uk>

        backport from mainline.
        2018-12-12 Segher Boessenkool  <segher@kernel.crashing.org>
                   Iain Sandoe  <iain@sandoe.co.uk>

        PR target/88343
        * config/rs6000/rs6000.c (save_reg_p): Do not save the picbase reg
        unless it has been used.
        (first_reg_to_save): Remove dead code.


Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/config/rs6000/rs6000.c


More information about the Gcc-bugs mailing list