Hide regs_invalidated_by_call etc.
authorRichard Sandiford <richard.sandiford@arm.com>
Mon, 30 Sep 2019 16:21:49 +0000 (16:21 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 30 Sep 2019 16:21:49 +0000 (16:21 +0000)
commit7c3958812bd5e2e139c7f0adf8f03b505fda67f2
treeebf2dbfac2d083425c627ba78e9bd582d4c515b5
parentb21a62b6246d3344cf74c79965523e4f59db7459
Hide regs_invalidated_by_call etc.

The previous patches removed all target-independent uses of
regs_invalidated_by_call, call_used_or_fixed_regs and
call_used_or_fixed_reg_p.  This patch therefore restricts
them to target-specific code (and reginfo.c, which sets them up).

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

gcc/
* hard-reg-set.h (regs_invalidated_by_call): Only define if
IN_TARGET_CODE.
(call_used_or_fixed_regs): Likewise.
(call_used_or_fixed_reg_p): Likewise.
* reginfo.c (regs_invalidated_by_call): New macro.

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