This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Minor bug fix in flow
- To: gcc-patches at gcc dot gnu dot org
- Subject: Minor bug fix in flow
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Fri, 1 Sep 00 11:03:16 EDT
There was an incorrect interaction between an optimization I added to
flow and the coede I added that allows functions to return with teh stack
pointer depressed.
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.
*** flow.c 2000/08/25 19:08:46 1.333
--- flow.c 2000/09/01 14:29:22
*************** init_propagate_block_info (bb, live, loc
*** 3781,3784 ****
--- 3781,3787 ----
a very conservative and simple job here. */
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)
&& (bb->succ == NULL