Fix reload after function-abi patches (PR91948)
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 1 Oct 2019 12:55:16 +0000 (12:55 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 1 Oct 2019 12:55:16 +0000 (12:55 +0000)
commit3366b37850b0b41d1cc80d82224b4c7804ad2158
tree39fe33d319af91269d37e3cb912d72e2d9ea3830
parent6bc89193bcf3c616e22d0f422e42e685f1d7796a
Fix reload after function-abi patches (PR91948)

The code was passing a pseudo rather than its allocated hard reg
to ira_need_caller_save_p.  Running under valgrind to reproduce
the failure also showed that ALLOCNO_CROSSED_CALLS_ABIS wasn't
being explicitly initialised.

2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
PR rtl-optimization/91948
* ira-build.c (ira_create_allocno): Initialize
ALLOCNO_CROSSED_CALLS_ABIS.
* ira-color.c (allocno_reload_assign): Pass hard_regno rather
than regno to ira_need_caller_save_p.

From-SVN: r276407
gcc/ChangeLog
gcc/ira-build.c
gcc/ira-color.c