This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Gimplifying Java
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: Andrew Haley <aph at redhat dot com>, java-patches at gcc dot gnu dot org, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: 13 Jun 2003 18:31:20 -0400
- Subject: Re: [tree-ssa] Gimplifying Java
- Organization: Red Hat Canada
- References: <Pine.LNX.4.44.0306131819150.6334-100000@ops2.one-point.com>
On Fri, 2003-06-13 at 18:26, Jeff Sturm wrote:
> t = {int <tmp>; <tmp> = p->a; <tmp>}
>
> to:
>
> t = {int <tmp>; <tmp> = p->a;}
>
[ ... ]
> That said, I'm not sure how to correctly express the former in GIMPLE,
> without introducing another temporary.
>
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?
Diego.