This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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


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;
//


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