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]

Re: optimization/8492: [3.3 regression] GCC spins forever compiling loop


Old Synopsis: GCC spins forever compiling loop
New Synopsis: [3.3 regression] GCC spins forever compiling loop

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Nov 18 17:29:37 2002
State-Changed-Why:
    Confirmed. Compiles fine with 2.95 and 3.2.1, but hangs
    with 3.3 of today. Code is this:
    ---------------------------------
    int count;
    
    int func(int *valp) {
      int val, locked = 0;
    
      while ((val = *valp) != 0) {
        if (count) {
          if (count)
            locked = 1;
          else
            locked = 1;
    
          if (!locked)
            continue;
        }
    
        if (!count)
          count--;
    
        break;
      }
    
      return val;
    }
    ----------------------------

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8492


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