diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2024-08-18 15:00:55 +0200 |
---|---|---|
committer | Georg-Johann Lay <avr@gjlay.de> | 2024-08-18 15:28:50 +0200 |
commit | dfb2e8caa85d1059a0ab8ed4f19568c04c9f13a4 (patch) | |
tree | f3b5050a68214ac6b2d8715a0762c812e3bd5280 /gcc/tree-ssa-phiopt.cc | |
parent | 3ae8794665ee7cbefee755d4b4be8d1ecb8c2a81 (diff) | |
download | gcc-dfb2e8caa85d1059a0ab8ed4f19568c04c9f13a4.zip gcc-dfb2e8caa85d1059a0ab8ed4f19568c04c9f13a4.tar.gz gcc-dfb2e8caa85d1059a0ab8ed4f19568c04c9f13a4.tar.bz2 |
AVR: target/116407 - Fix linker error "relocation truncated to fit".
Some text peepholes output extra instructions prior to a branch
instruction and that increase the jump offset of backward branches.
PR target/116407
gcc/
* config/avr/avr-protos.h (avr_jump_mode): Add an int argument.
* config/avr/avr.cc (avr_jump_mode): Add an int argument to increase
the computed jump offset of backwards branches.
* config/avr/avr.md (*dec-and-branchhi!=-1, *dec-and-branchsi!=-1):
Increase the jump offset used by avr_jump_mode() as needed.
gcc/testsuite/
* gcc.target/avr/torture/pr116407-2.c: New test.
* gcc.target/avr/torture/pr116407-4.c: New test.
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions