[ tree-ssa ] EON fix

law@redhat.com law@redhat.com
Thu Apr 24 05:05:00 GMT 2003


Whee.  This should fix the problems with EON from SPEC2000 tripping an
internal sanity check in the tree-ssa code.

The executive summary is we weren't gimplifying the cleanup 
associated with a TARGET_EXPR.  Wow.

Bootstrapped and regression tested.

	* gimplify.c (simplify_target_expr): Make sure to simplify
	the cleanup too.

Index: gimplify.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/gimplify.c,v
retrieving revision 1.1.2.34
diff -c -3 -p -r1.1.2.34 gimplify.c
*** gimplify.c	16 Apr 2003 15:25:58 -0000	1.1.2.34
--- gimplify.c	24 Apr 2003 04:08:01 -0000
*************** simplify_target_expr (expr_p, pre_p, pos
*** 2331,2337 ****
  
    /* If needed, push the cleanup for the temp.  */
    if (TARGET_EXPR_CLEANUP (targ))
!     gimple_push_cleanup (TARGET_EXPR_CLEANUP (targ), pre_p);
  
    *expr_p = temp;
  }
--- 2331,2340 ----
  
    /* If needed, push the cleanup for the temp.  */
    if (TARGET_EXPR_CLEANUP (targ))
!     {
!       simplify_stmt (&TARGET_EXPR_CLEANUP (targ));
!       gimple_push_cleanup (TARGET_EXPR_CLEANUP (targ), pre_p);
!     }
  
    *expr_p = temp;
  }







More information about the Gcc-patches mailing list