flow.c (init_propagate_block_info): Don't mark frame dead at end of function if returns wiht stack pointer depressed.

* flow.c (init_propagate_block_info): Don't mark frame dead at end
	of function if returns wiht stack pointer depressed.

From-SVN: r36099
This commit is contained in:
Richard Kenner 2000-09-01 14:48:11 +00:00 committed by Richard Kenner
parent 1ba5ae8f08
commit 6324d2bbb6
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Fri Sep 1 10:59:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* flow.c (init_propagate_block_info): Don't mark frame dead at end
of function if returns wiht stack pointer depressed.
2000-09-01 Andrew Haley <aph@redhat.com> 2000-09-01 Andrew Haley <aph@redhat.com>
* dwarf2out.c (stack_adjust_offset): New function. * dwarf2out.c (stack_adjust_offset): New function.

View File

@ -3780,6 +3780,9 @@ init_propagate_block_info (bb, live, local_set, flags)
recording any such that are made and show them dead at the end. We do recording any such that are made and show them dead at the end. We do
a very conservative and simple job here. */ a very conservative and simple job here. */
if (optimize if (optimize
&& ! (TREE_CODE (TREE_TYPE (current_function_decl)) == FUNCTION_TYPE
&& (TYPE_RETURNS_STACK_DEPRESSED
(TREE_TYPE (current_function_decl))))
&& (flags & PROP_SCAN_DEAD_CODE) && (flags & PROP_SCAN_DEAD_CODE)
&& (bb->succ == NULL && (bb->succ == NULL
|| (bb->succ->succ_next == NULL || (bb->succ->succ_next == NULL