This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Minor bug fix in flow


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]