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

Andrew Pinski pinskia@physics.uc.edu
Mon Sep 5 14:32:00 GMT 2005


The problem here is that we keep a hold of the body of a BLOCK even 
though we don't
need it after gimplifying.  This patch NULLs out BLOCK_EXPR_BODY, the 
old BLOCK's
BLOCK_EXPR_BODY which causes us to be able to GC away the expressions 
and not
keep around dead expressions.  This also gives us one more step to back 
to
enabling unit-at-a-time at -O1 and above.

OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions.

Thanks,
Andrew Pinski

ChangeLog:

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


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: t.diff.txt
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050905/aa75accc/attachment.txt>


More information about the Java-patches mailing list