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: [tree-ssa] Gimplifying Java


On 13 Jun 2003, Diego Novillo wrote:
> >   t = {int <tmp>; <tmp> = p->a; <tmp>}
>
> In C we just introduce another temporary:
>
> {
>   int retval.1;
>   int t;
>
>   {
>     int tmp;
>
>     tmp = p->a;
>     retval.1 = tmp
>   };
>   t = retval.1
> }
>
> Would that work for you?

That's what I ended up doing too, although I suspect it can go away... we
were using it to copy the RHS of a MODIFY_EXPR that can trap.  Jeff Law's
patch to gimplify_modify_expr is a more general fix to that problem:

	* gimplify.c (gimplify_modify_expr): If the RHS of an MODIFY_EXPR
	might throw, then make sure its result goes into a temporary.

Jeff


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