target.h (struct gcc_target): Add hard_regno_scratch_ok field.
authorAnatoly Sokolov <aesok@post.ru>
Wed, 9 Jul 2008 13:43:11 +0000 (17:43 +0400)
committerAnatoly Sokolov <aesok@gcc.gnu.org>
Wed, 9 Jul 2008 13:43:11 +0000 (17:43 +0400)
commitdbc42c44d87ef1031c3f649436df02fbcdbcc3c6
tree1e2b360a3708a9b833a49b11cda5009cb7f10ed9
parent28f16d05a00d360b76f3c48ac739bcab22fb1418
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/ChangeLog
gcc/Makefile.in
gcc/doc/tm.texi
gcc/recog.c
gcc/target-def.h
gcc/target.h
gcc/targhooks.c
gcc/targhooks.h