Landing: 0c4d0fe4c998

Project / Subsystem

gcc / xtensa

Date

2026-09-12

Author

Takayuki 'January June' Suwa

Commit

0c4d0fe4c998ea42cfc241c81678d59b708b1043

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
xtensa
patch_id
—
commit_hash
0c4d0fe4c998ea42cfc241c81678d59b708b1043
source_type
github
headline
xtensa: Revert 'return' insn pattern changes
tldr
Reverts a change to how the 'return' instruction pattern is handled on Xtensa, restoring correct register allocation.
author
Takayuki 'January June' Suwa
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • xtensa
  • • revert
  • • register allocation
  • • ABI
discussion_id_link
—
bugzilla_pr
—
date
2026-09-12T00:00:00.000Z

This commit reverts a change that incorrectly handled register allocation for the ‘return’ instruction pattern on Xtensa processors using the CALL0 ABI. Previously, specifying hard registers used by the return pattern via EPILOGUE_USES() interfered with DF information and register allocation. This reversion restores the previous behavior of directly using a USE RTX for the return address register, allowing it to be repurposed when needed.