Hi Richard, this causes a bootstrap error on s390 (where IRA_HARD_REGNO_ADD_COST_MULTIPLIER is defined). rclass is used in the #define-guarded area. I guess you also wanted to move this to the new function ira_caller_save_cost?
Regards Robin -- ../../gcc/ira-costs.c: In function ‘void ira_tune_allocno_costs()’: ../../gcc/ira-costs.c:2354:45: error: ‘rclass’ was not declared in this scope; did you mean ‘aclass’? 2354 | cost += ((ira_memory_move_cost[mode][rclass][0] | ^~~~~~ | aclass