aboutsummaryrefslogtreecommitdiff
path: root/gcc/reginfo.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-09-10 18:57:03 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-09-10 18:57:03 +0000
commit53bee79caba4fb88acbcd9bad7891ea45b5511e3 (patch)
tree5d53be803911796260e5d0b9d669c7ca85e0cba7 /gcc/reginfo.c
parent2e3d041b1328f123e60244df9e78f9c30e73462c (diff)
downloadgcc-53bee79caba4fb88acbcd9bad7891ea45b5511e3.zip
gcc-53bee79caba4fb88acbcd9bad7891ea45b5511e3.tar.gz
gcc-53bee79caba4fb88acbcd9bad7891ea45b5511e3.tar.bz2
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
Diffstat (limited to 'gcc/reginfo.c')
-rw-r--r--gcc/reginfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/reginfo.c b/gcc/reginfo.c
index 026a7bf..e860def 100644
--- a/gcc/reginfo.c
+++ b/gcc/reginfo.c
@@ -66,6 +66,9 @@ struct target_hard_regs *this_target_hard_regs = &default_target_hard_regs;
struct target_regs *this_target_regs = &default_target_regs;
#endif
+#define call_used_regs \
+ (this_target_hard_regs->x_call_used_regs)
+
/* Data for initializing fixed_regs. */
static const char initial_fixed_regs[] = FIXED_REGISTERS;