https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115485
--- Comment #22 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Christophe Lyon <cl...@gcc.gnu.org>: https://gcc.gnu.org/g:8b79adbb92f80cecf447e4ec75d6c6e7ca62ac1e commit r13-9417-g8b79adbb92f80cecf447e4ec75d6c6e7ca62ac1e Author: Christophe Lyon <christophe.l...@linaro.org> Date: Mon Mar 3 11:12:18 2025 +0000 arm: Handle fixed PIC register in require_pic_register (PR target/115485) Commit r9-4307-g89d7557202d25a forgot to accept a fixed PIC register when extending the assert in require_pic_register. arm_pic_register can be set explicitly by the user (e.g. -mpic-register=r9) or implicitly as the default value with -fpic/-fPIC/-fPIE and -mno-pic-data-is-text-relative -mlong-calls, and we want to use/accept it when recording cfun->machine->pic_reg as used to be the case. PR target/115485 gcc/ * config/arm/arm.cc (require_pic_register): Fix typos in comment. Handle fixed arm_pic_register. gcc/testsuite/ * g++.target/arm/pr115485.C: New test. (cherry picked from commit b1d0ac28de643e7c810e407a0668737131cdcc00)