]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix ALL_REGS thinko in initialisation of function_used_regs
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Oct 2019 21:19:35 +0000 (21:19 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Oct 2019 21:19:35 +0000 (21:19 +0000)
commitd14dd533dc5a35c0a09453ea7431efa3b2abedbe
treee19f20a3e6079aa3aae5cc77c8e1dcab746e1be8
parent9fa0badea1c775766232fe47e26da4106d73962e
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].

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276489 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cgraph.c