This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Gimplifying Java
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Andrew Haley <aph at redhat dot com>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, Jeff Sturm <jsturm at one-point dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 13 Jun 2003 14:46:33 -0400
- Subject: Re: [tree-ssa] Gimplifying Java
I think this also can happen in C++ and C.
C example:
int f(int a)
{
return a;
}
int g(int a, int b)
{
b = f(a);
return a+b;
}
From *.t05.simple:
;; Function f (f)
f (a)
{
return a;
}
;; Function g (g)
g (a, b)
{
int retval.1;
{
int a;
int <UV1ee0>;
a = a; <--- how the hell is this true?
{
{
<UV1ee0> = a;
goto <UL1e70>;
}
};
<UL1e70>:;;
retval.1 = <UV1ee0>
};
b = retval.1;
return a + b;
}
Thanks,
Andrew Pinski
On Friday, Jun 13, 2003, at 14:39 US/Eastern, Andrew Haley wrote:
// This bit must be wrong...
a = b;
b = a;
//