Fix ALL_REGS thinko in initialisation of function_used_regs
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 2 Oct 2019 21:19:35 +0000 (21:19 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 2 Oct 2019 21:19:35 +0000 (21:19 +0000)
commitaa29ed6db6d409b54e552830230205a7b4da0d4d
treee19f20a3e6079aa3aae5cc77c8e1dcab746e1be8
parentb7c41230322051912d979e132c52100158745b73
Fix ALL_REGS thinko in initialisation of function_used_regs

My change to the -fipa-ra bookkeeping used ALL_REGS as the supposedly
safe default assumption, but ALL_REGS isn't literally all registers,
just a close approximation.

This caused a bootstrap failure on arm-linux-gnu, where the condition
code register isn't in ALL_REGS and so was being masked out of some
call-clobbered sets.

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

gcc/
* cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
instead of reg_class_contents[ALL_REGS].

From-SVN: r276489
gcc/ChangeLog
gcc/cgraph.c