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] More jump threading improvements


My apologies, the generated code is correct.  Next time I will report
a bug, I will write a testcase before going further.

On Mon, Jan 26, 2004 at 12:17:34PM -0700, law@redhat.com wrote:
> 
> Apparently your claim is that the values for "a" at some point is wrong.
> Why don't you post a testcase which actually tests the value of "a" at
> a suitable point and aborts if it is incorrect.
> 
I have tried several tests like the following and they all passed.

int main(void) 
{ 
  int a = 0; 
  int b; 
  while (a < 50) 
    { 
      for (b = 0; b < 10; b++) 
        { 
          a++;
        } 
      a++;
    }
  if (a != 55)
   abort ();
}

> That's probably going to be a lot more productive since that ought to make
> it amazingly clear without us trying to interpret each other's explanations.
> [ The explanations will probably become much clearer as well. ]
> 
Yes.  
Sorry again.


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