aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorVladimir Makarov <vmakarov@redhat.com>2008-06-26 20:54:16 +0000
committerVladimir Makarov <vmakarov@redhat.com>2008-06-26 20:54:16 +0000
commit17e87c87554c80caea2853d2f7be4b26168ddd85 (patch)
tree3685123169e6aacc1ad9960c2fd62770bc865d13 /gcc
parentda43f2f021ad1191404b9aef80423068f1a46315 (diff)
2008-06-26 Vladimir Makarov <vmakarov@redhat.com>
* caller-save.c (make_global_save_analysis): Add entry and exit blocks to all_blocks. (save_call_clobbered_regs): Initialize bb_info for entry/exit blocks. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ira@137161 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/caller-save.c4
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 29a91df0aed..12008c40f81 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2008-06-26 Vladimir Makarov <vmakarov@redhat.com>
+
+ * caller-save.c (make_global_save_analysis): Add entry and exit
+ blocks to all_blocks.
+ (save_call_clobbered_regs): Initialize bb_info for entry/exit
+ blocks.
+
2008-06-26 Kenneth Zadeck <zadeck@naturalbridge.com>
* ira-conflicts.c ira-color.c ira-lives.c ira-emit.c ira-build.c
diff --git a/gcc/caller-save.c b/gcc/caller-save.c
index 12e809728d4..798927523e6 100644
--- a/gcc/caller-save.c
+++ b/gcc/caller-save.c
@@ -1548,7 +1548,7 @@ make_global_save_analysis (void)
int iter, changed_p;
all_blocks = BITMAP_ALLOC (NULL);
- FOR_EACH_BB (bb)
+ FOR_ALL_BB (bb)
{
bitmap_set_bit (all_blocks, bb->index);
}
@@ -1734,6 +1734,8 @@ save_call_clobbered_regs (void)
loop->aux = xmalloc (sizeof (struct loop_info));
CLEAR_HARD_REG_SET (LOOP_INFO (loop)->mentioned_regs);
}
+ memset (BB_INFO (ENTRY_BLOCK_PTR), 0, sizeof (struct bb_info));
+ memset (BB_INFO (EXIT_BLOCK_PTR), 0, sizeof (struct bb_info));
make_global_save_analysis ();
}