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]

[Bug c/51389] New: GCC uses up to 75GB of virtual memory


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

             Bug #: 51389
           Summary: GCC uses up to 75GB of virtual memory
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: alex@artisancoder.com


Created attachment 25971
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25971
test file to reproduce the problem

When compiling the attached file, GCC uses up to 75GB of virtual memory, which
causes swapping and slows down the compilation a lot.

Command line:
/opt/local/bin/gcc-mp-4.7 -save-temps -Wno-unused -O3 -fno-math-errno
-fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv
-fmodulo-sched -freschedule-modulo-scheduled-loops -march=core2
-fomit-frame-pointer -fPIC -fno-common -mieee-fp   -I"../include" -c -o
"_t-c-2.o" -I. -DHAVE_CONFIG_H _t-c-2.c -D___LIBRARY

System:
Darwin alexs 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug  9 20:54:00 PDT 2011;
root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64 i386

GCC:
Using built-in specs.
COLLECT_GCC=/opt/local/bin/gcc-mp-4.7
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin11/4.7.0/lto-wrapper
Target: x86_64-apple-darwin11
Configured with: ../gcc-4.7-20111126/configure --prefix=/opt/local
--build=x86_64-apple-darwin11 --enable-languages=c,c++,objc,obj-c++
--libdir=/opt/local/lib/gcc47 --includedir=/opt/local/include/gcc47
--infodir=/opt/local/share/info --mandir=/opt/local/share/man
--datarootdir=/opt/local/share/gcc-4.7 --with-local-prefix=/opt/local
--with-system-zlib --disable-nls --program-suffix=-mp-4.7
--with-gxx-include-dir=/opt/local/include/gcc47/c++/ --with-gmp=/opt/local
--with-mpfr=/opt/local --with-mpc=/opt/local --enable-stage1-checking
--disable-multilib
Thread model: posix
gcc version 4.7.0 20111126 (experimental) (GCC)


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