https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115485
--- Comment #20 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Christophe Lyon <cl...@gcc.gnu.org>: https://gcc.gnu.org/g:b1d0ac28de643e7c810e407a0668737131cdcc00 commit r15-7882-gb1d0ac28de643e7c810e407a0668737131cdcc00 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.