https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79030

            Bug ID: 79030
           Summary: Compilation failure due to virtual memory exhaustion
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: aurelien at aurel32 dot net
  Target Milestone: ---
              Host: mipsel-linux-gnu
            Target: mipsel-linux-gnu
             Build: mipsel-linux-gnu

The attached testcase fails to compile on a 32-bit MIPS machine due to virtual
memory exhaustion. The machine has plenty of available memory, but the virtual
address space is limited to 2GB:

$ g++ -O2 -fno-var-tracking-assignments -g -c ceph_dencoder.ii
cc1plus: out of memory allocating 3195232 bytes after a total of 32043008 bytes
$

However it compiles successfully when tunning ggc-min-expand:
$ g++ -O2 -fno-var-tracking-assignments -g -c ceph_dencoder.ii --param
ggc-min-expand=5
$

Reply via email to