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]

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


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.


Attachment: t.diff.txt
Description: Text document


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