Hide call_used_regs in target-independent code
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 10 Sep 2019 18:57:03 +0000 (18:57 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 10 Sep 2019 18:57:03 +0000 (18:57 +0000)
commit53bee79caba4fb88acbcd9bad7891ea45b5511e3
tree5d53be803911796260e5d0b9d669c7ca85e0cba7
parent2e3d041b1328f123e60244df9e78f9c30e73462c
Hide call_used_regs in target-independent code

Now that tests of call_used_regs go through call_used_or_fixed_reg_p,
we can hide call_used_regs from target-independent code.  (It still
needs to be available to targets for the conditional register usage
hooks.)

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

gcc/
* hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
(call_used_or_fixed_reg_p): Expand definition of call_used_regs.
* reginfo.c (call_used_regs): New macro.

From-SVN: r275604
gcc/ChangeLog
gcc/hard-reg-set.h
gcc/reginfo.c