aboutsummaryrefslogtreecommitdiff
path: root/gcc/reginfo.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-09-30 16:21:49 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-09-30 16:21:49 +0000
commit7c3958812bd5e2e139c7f0adf8f03b505fda67f2 (patch)
treeebf2dbfac2d083425c627ba78e9bd582d4c515b5 /gcc/reginfo.c
parentb21a62b6246d3344cf74c79965523e4f59db7459 (diff)
downloadgcc-7c3958812bd5e2e139c7f0adf8f03b505fda67f2.zip
gcc-7c3958812bd5e2e139c7f0adf8f03b505fda67f2.tar.gz
gcc-7c3958812bd5e2e139c7f0adf8f03b505fda67f2.tar.bz2
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
Diffstat (limited to 'gcc/reginfo.c')
-rw-r--r--gcc/reginfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/reginfo.c b/gcc/reginfo.c
index 265157f..791c7a0 100644
--- a/gcc/reginfo.c
+++ b/gcc/reginfo.c
@@ -69,6 +69,8 @@ struct target_regs *this_target_regs = &default_target_regs;
#define call_used_regs \
(this_target_hard_regs->x_call_used_regs)
+#define regs_invalidated_by_call \
+ (this_target_hard_regs->x_regs_invalidated_by_call)
/* Data for initializing fixed_regs. */
static const char initial_fixed_regs[] = FIXED_REGISTERS;