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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Claudiu Zissulescu <[email protected]>:

https://gcc.gnu.org/g:c021c69e0de6ba01ecdb63cf8cad0813594b12ae

commit r17-620-gc021c69e0de6ba01ecdb63cf8cad0813594b12ae
Author: Michiel Derhaeg <[email protected]>
Date:   Wed May 20 10:57:09 2026 +0300

    arc: check if the addend fits when referencing small data memory [PR115650]

    This prevents linker errors when referencing small data using large
    offsets. In practice it is very unlikely to be a real problem but this
    was fixed because other compilers do this check and it ensures the
    following tests now succeed:
    - gcc.dg/torture/pr60115.c
    - gcc.dg/torture/pr105665.c

    gcc/ChangeLog:

            PR target/115650
            * config/arc/arc.cc (legitimate_small_data_address_p): Check
            offset size.

    gcc/testsuite/ChangeLog:

            PR target/115650
            * gcc.target/arc/sdata-6.c: New test.

    Signed-off-by: Michiel Derhaeg <[email protected]>
    Signed-off-by: Claudiu Zissulescu <[email protected]>

Reply via email to