https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88343
--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> --- Author: iains Date: Wed Dec 12 08:53:49 2018 New Revision: 267049 URL: https://gcc.gnu.org/viewcvs?rev=267049&root=gcc&view=rev Log: rs6000 - Fix PR target/88343 The PR is about unnecessary saves of the pic base register, it shows on m32 Linux and m32/m64 Darwin. The fix is to check that we are in a pic mode and that the picbase has actually been used. As a bonus, some #ifdef’d TARGET_MACHO code is no longer required. 2018-12-12 Segher Boessenkool <seg...@kernel.crashing.org> Iain Sandoe <i...@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: trunk/gcc/ChangeLog trunk/gcc/config/rs6000/rs6000.c