On Fri, Oct 30, 2026 at 5:01 AM Takayuki 'January June' Suwa <[email protected]> wrote: > > For this target, the GR_REGS register class contains several subclasses, > which are indeed passed to the TARGET_SECONDARY_RELOAD hook function. > However, the current implementation only compares these against GR_REGS or > RL_REGS, which may lead to incorrect results. > > This patch ensures accuracy in the determination by using > reg_class_subset_p() within the hook function to evaluate the register > class. > > gcc/ChangeLog: > > * config/xtensa/xtensa.cc (xtensa_secondary_reload): > Change to use reg_class_subset_p() for evaluating the provided > register class. > --- > gcc/config/xtensa/xtensa.cc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
Regtested for target=xtensa-linux-uclibc, no new regressions. Committed to master. -- Thanks. -- Max
