Skip to content

Conversation

@MichielDerhaeg
Copy link
Contributor

No description provided.

@MichielDerhaeg MichielDerhaeg self-assigned this Nov 20, 2025
@MichielDerhaeg MichielDerhaeg force-pushed the michiel/ld_sda branch 3 times, most recently from b1c1580 to 1fda6d1 Compare November 21, 2025 09:22
…15650]

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

        PR target/115650

gcc/ChangeLog:

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

gcc/testsuite/ChangeLog:

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

Signed-off-by: Michiel Derhaeg <[email protected]>
@MichielDerhaeg MichielDerhaeg marked this pull request as ready for review November 25, 2025 12:36
@MichielDerhaeg MichielDerhaeg merged commit 9f7ad76 into arc-2026.03 Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants