This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] unit-at-a-time for java
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, <java-patches at gcc dot gnu dot org>
- Date: Wed, 23 Jul 2003 15:13:46 -0400 (EDT)
- Subject: Re: [PATCH] unit-at-a-time for java
On Tue, 22 Jul 2003, Jan Hubicka wrote:
> > Jan, I'm not sure what the comment regarding current_function_decl means.
> > However the java inliner requires this to be set to the outermost calling
> > function. I don't know what the impact to C/C++ is. (If that won't work
> > I suppose we could introduce a new variable.)
>
> Your change will work. the inliner just avoids inlining of
> current_function_decl so when the current_funcntion_decl is set to
> something that we want to inline we lose. setting it to the function
> itself is OK as we don't do recursive inlining yet.
Thanks for reviewing. Maybe we can do a little longer comment, something
like:
/* The tree inliner avoids current_function_decl, so set it to something
that won't be inlined anyway. We don't inline recursion yet, so this
is safe.
Plus, the java tree inliner currently needs this to be set to the
outermost caller to merge class initialization checks. */
Bootstrap has completed without regressions. Are the java and cgraphunit
patches OK for mainline? (Andrew will have to review the java
changes.)
Jeff