[PATCH] gimplifying leaves reference to the BLOCK's body

Tom Tromey tromey@redhat.com
Tue Sep 6 14:13:00 GMT 2005


>>>>> "Andrew" == Andrew Pinski <pinskia@physics.uc.edu> writes:

Andrew> * java-gimplify.c (java_gimplify_block): NULL out the old BLOCK's
Andrew> BLOCK_EXPR_BODY before returning the new BIND_EXPR.

Andrew> +  BLOCK_EXPR_BODY (java_block) = NULL_TREE;
 
This seems reasonable to me, but either Per or Andrew will have to
approve.  Perhaps a comment explaining why we're doing this would be
helpful.

Just to clarify, we only collect more if later passes determine that
code in the block is dead.  Currently in this situation, the dead
trees will linger since we still have a pointer to them.

Tom



More information about the Java-patches mailing list