OSDN Git Service

* resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Apr 2009 10:42:09 +0000 (10:42 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Apr 2009 10:42:09 +0000 (10:42 +0000)
commit075f605210f925be1175702a8c2a67b8a78e9a3b
tree7d4ab3be617c0759c6adda3d36ab588a7050f425
parentca80ffc8eb660c9beb252617e2cc790187a14d05
* resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
a label's basic block.
(mark_target_live_regs): Tidy and rework obsolete comments.
Change back DF problem to LIVE.  If a label starts a basic block,
assume that all registers that used to be live then still are.
(init_resource_info): If a label starts a basic block, set its
BLOCK_FOR_INSN accordingly.
(fini_resource_info): Undo the setting of BLOCK_FOR_INSN.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146829 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/resource.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/opt2.adb [new file with mode: 0644]