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

             Bug #: 51551
           Summary: tree-loop-optimize chews all memory
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Keywords: memory-hog
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: g...@gcc.gnu.org
              Host: i686-pc-linux-gnu
            Target: i686-pc-linux-gnu
             Build: i686-pc-linux-gnu


Created attachment 26082
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26082
bug-loop.c

The test program attached don't finish compilation and gcc is entering infinite
loop that chews up all of memory.

Compile with:

$ gcc bug-loop.c -S -Os

Following works:

$ gcc bug-loop.c -S -O2
$ gcc bug-loop.c -S -Os -fno-tree-loop-optimize

Reply via email to