OSDN Git Service

* target.h (struct gcc_target): Add hard_regno_scratch_ok field.
authoraesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Jul 2008 13:43:11 +0000 (13:43 +0000)
committeraesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Jul 2008 13:43:11 +0000 (13:43 +0000)
commit747bf50d2641442948a5405c9d5b6f844fa1e898
tree1e2b360a3708a9b833a49b11cda5009cb7f10ed9
parentde4eeeaf0889c5c2d55be8e6c4c253cedfb49c72
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137657 138bc75d-0d04-0410-961f-82ee72b054a4
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