This is the mail archive of the gcc-bugs@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]

[Bug rtl-optimization/20372] [4.0/4.1 Regression] Reversed branch-on-count loop (DoLoop)


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-07 22:19 -------
Here is a simplified C code which shows the problem:
int *ggg;
void f(int l1, int l2)
{
  int i;
  if (l1)
  {
    for(i=0;i<l1;i++)
     ggg[i]=1;
   return;
  }
  for(i=0;i<l2;i++)
   ggg[i]=i;
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |4.0.0 4.1.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-03-07 22:19:07
               date|                            |
            Summary|Reversed branch-on-count    |[4.0/4.1 Regression]
                   |loop (DoLoop)               |Reversed branch-on-count
                   |                            |loop (DoLoop)
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20372


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