Hi,

First of all this is my first bugreport when it comes to compilers and it's not
that detailed so bear with me.

If i compile a special version of VisualBoyAdvance on my box (fixed a 64 bit
problem, not really tested) using gcc 4.0.1 as supplied by gentoo i will get a
OOM on my machine, see memory info.

gcc 4.0.1 seemed to hover with a resident memory size of 800 mb while 3.4.3 did
the same thing at about 342 mb. 3.4.3 seemed to peak at 600mb resident size
(checked with top, so not reliable).

This happens while compiling GBA.cpp which is a rediculusly large cpp file:
100K    GBA.cpp, but only 4234 lines.

Is this intended behavior, or indeed a bug?
(Btw, i have been trying to get the gentoo 4.1.x snapshots to compile for
further verification but they never seem to work =P)

Mem info: 
Mem:       1023420
Swap:      1642932

gcc (GCC) 4.0.1 (Gentoo 4.0.1, pie-8.7.8)
gcc (GCC) 3.4.3 20041125 (Gentoo 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)

-- 
           Summary: [OOM] GCC 4.0.1 OOM's while compiling VBA (works with
                    3.4.x)
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pomac at vapor dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: amd64-linux-gnu
  GCC host triplet: amd64-linux-gnu
GCC target triplet: amd64-linux-gnu


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

Reply via email to