From dbc42c44d87ef1031c3f649436df02fbcdbcc3c6 Mon Sep 17 00:00:00 2001 From: Anatoly Sokolov Date: Wed, 9 Jul 2008 17:43:11 +0400 Subject: target.h (struct gcc_target): Add hard_regno_scratch_ok field. * target.h (struct gcc_target): Add hard_regno_scratch_ok field. * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New. (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK. * targhooks.c (default_hard_regno_scratch_ok): New function. * targhooks.h (default_hard_regno_scratch_ok): Declare function. * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook. * recog.c: Include "target.h". (peep2_find_free_register): Add check for global regs. Add target specific check. * Makefile.in (recog.o): Depend on target.h. From-SVN: r137657 --- gcc/targhooks.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/targhooks.c') diff --git a/gcc/targhooks.c b/gcc/targhooks.c index 7e931c5..1cb5614 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -703,4 +703,10 @@ default_builtin_vector_alignment_reachable (const_tree type, bool is_packed) return true; } +bool +default_hard_regno_scratch_ok (unsigned int regno ATTRIBUTE_UNUSED) +{ + return true; +} + #include "gt-targhooks.h" -- cgit v1.1