Commit 1d489435 by Richard Sandiford Committed by Richard Sandiford

df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM regardless of epilogue_completed.

gcc/
	* df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
	regardless of epilogue_completed.

From-SVN: r139998
parent d5551618
2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
* df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
regardless of epilogue_completed.
2008-09-04 Vladimir Makarov <vmakarov@redhat.com> 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
PR middle-end/37359 PR middle-end/37359
......
...@@ -3681,6 +3681,9 @@ df_get_entry_block_def_set (bitmap entry_block_defs) ...@@ -3681,6 +3681,9 @@ df_get_entry_block_def_set (bitmap entry_block_defs)
#endif #endif
} }
/* The always important stack pointer. */
bitmap_set_bit (entry_block_defs, STACK_POINTER_REGNUM);
/* Once the prologue has been generated, all of these registers /* Once the prologue has been generated, all of these registers
should just show up in the first regular block. */ should just show up in the first regular block. */
if (HAVE_prologue && epilogue_completed) if (HAVE_prologue && epilogue_completed)
...@@ -3693,9 +3696,6 @@ df_get_entry_block_def_set (bitmap entry_block_defs) ...@@ -3693,9 +3696,6 @@ df_get_entry_block_def_set (bitmap entry_block_defs)
} }
else else
{ {
/* The always important stack pointer. */
bitmap_set_bit (entry_block_defs, STACK_POINTER_REGNUM);
/* If STATIC_CHAIN_INCOMING_REGNUM == STATIC_CHAIN_REGNUM /* If STATIC_CHAIN_INCOMING_REGNUM == STATIC_CHAIN_REGNUM
only STATIC_CHAIN_REGNUM is defined. If they are different, only STATIC_CHAIN_REGNUM is defined. If they are different,
we only care about the STATIC_CHAIN_INCOMING_REGNUM. */ we only care about the STATIC_CHAIN_INCOMING_REGNUM. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment