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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>>>>> "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


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