[Bug optimization/15139] New: cc1 uses excessive amounts of memory compiling small routine

p dot van-hoof at qub dot ac dot uk gcc-bugzilla@gcc.gnu.org
Sun Apr 25 23:00:00 GMT 2004


When compiling the attached routine with

gcc -c -O2 -funroll-loops a.c

cc1 will use excessive amounts of memory. I killed the process when it reached
2700 MB, but it was still steadily growing in size. Given the fact that the
routine is only 20 lines long, this seems to point to a genuine problem in the
compiler, not just a badly optimized component. The problem only arrizes with
gcc 3.4.0, not 3.3.3 or the mainline.

-- 
           Summary: cc1 uses excessive amounts of memory compiling small
                    routine
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: p dot van-hoof at qub dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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



More information about the Gcc-bugs mailing list