[tree-ssa] Gimplifying Java

Andrew Haley aph@redhat.com
Fri Jun 13 18:44:00 GMT 2003


This is a bug when dumping tree-ssa.  It's AFAICS only a bug in the
dump and doesn't generate bad code.

This:


inline.barf(int,int) (this, a, b)
{
  return a / b;
}


inline.wizzle(int,int) (this, a, b)
{
  struct inline * this.1;
  int b.2;
  int a.3;
  int T.4;

  this.1 = this;
  b.2 = b;
  a.3 = a;
  T.4 = barf (this.1, b.2, a.3);
  return T.4;
}

inlines to this in inline.java.t04.inlined:

inline.wizzle(int,int) (this, a, b)
{
  int retval.5;
  struct inline * this.1;
  int b.2;
  int a.3;
  int T.4;

  {
    int b;
    int a;
    struct inline * this;
    int <UVef50>;

    this = this;

// This bit must be wrong...
    a = b;
    b = a;
// 

    {
      {
        <UVef50> = a / b;
        goto <ULeee0>;
      }
    };
    <ULeee0>:;;
    retval.5 = <UVef50>
  };
  T.4 = retval.5;
  return T.4;
}

I guess there is some renaming needs to be done somewhere.

Andrew.



More information about the Gcc-patches mailing list