From e93f30a65fdca10d8881fe1a462eca347b5f58b2 Mon Sep 17 00:00:00 2001 From: Vladimir Makarov Date: Thu, 10 Nov 2016 17:04:31 +0000 Subject: target.def (additional_allocno_class_p): New. 2016-11-10 Vladimir Makarov * target.def (additional_allocno_class_p): New. * hooks.h (hook_bool_reg_class_t_false): New prototype. * hooks.c (hook_bool_reg_class_t_false): New. * ira.c (setup_allocno_and_important_classes): Use the new hook. * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it. * doc/tm.texi: Update. From-SVN: r242043 --- gcc/hooks.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/hooks.c') diff --git a/gcc/hooks.c b/gcc/hooks.c index 3995786..6fed2c5 100644 --- a/gcc/hooks.c +++ b/gcc/hooks.c @@ -466,3 +466,11 @@ hook_bool_uint_uintp_false (unsigned int, unsigned int *) { return false; } + +/* Generic hook that takes a register class and returns false. */ +bool +hook_bool_reg_class_t_false (reg_class_t regclass ATTRIBUTE_UNUSED) +{ + return false; +} + -- cgit v1.1