[Bug target/115650] [15/16/17 Regression] ARC backend bug exposed by late-combine pass

2026-06-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115650

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|15.3|15.4

--- Comment #5 from Richard Biener  ---
GCC 15.3 is being released, retargeting bugs to GCC 15.4.

[Bug target/115650] [15/16/17 Regression] ARC backend bug exposed by late-combine pass

2026-05-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115650

--- Comment #4 from GCC Commits  ---
The master branch has been updated by Claudiu Zissulescu :

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

commit r17-620-gc021c69e0de6ba01ecdb63cf8cad0813594b12ae
Author: Michiel Derhaeg 
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 
Signed-off-by: Claudiu Zissulescu