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

--- Comment #23 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Christophe Lyon
<cl...@gcc.gnu.org>:

https://gcc.gnu.org/g:149b38a44d041d3b4142f50a9b2d6e1190df3b11

commit r12-10980-g149b38a44d041d3b4142f50a9b2d6e1190df3b11
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)

Reply via email to