https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102107
--- Comment #17 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Segher Boessenkool <seg...@gcc.gnu.org>: https://gcc.gnu.org/g:86e6268cff328e27ee6f90e2afc35b6f437a25cd commit r12-3418-g86e6268cff328e27ee6f90e2afc35b6f437a25cd Author: Segher Boessenkool <seg...@kernel.crashing.org> Date: Wed Sep 8 13:10:30 2021 +0000 rs6000: Fix ELFv2 r12 use in epilogue We cannot use r12 here, it is already in use as the GEP (for sibling calls). 2021-09-08 Segher Boessenkool <seg...@kernel.crashing.org> PR target/102107 * config/rs6000/rs6000-logue.c (rs6000_emit_epilogue): For ELFv2 use r11 instead of r12 for restoring CR.