From mboxrd@z Thu Jan 1 00:00:00 1970 From: pfeifer@dbai.tuwien.ac dot@(Gerald Pfeifer) To: gcc-gnats@gcc.gnu.org Subject: middle-end/3973: GCC fails to bootstrap with 80+160MB memory / optimization Date: Thu, 09 Aug 2001 07:16:00 -0000 Message-id: <200108091406.QAA19663@venus.dbai.tuwien.ac.at> X-SW-Source: 2001-08/msg00138.html List-Id: >Number: 3973 >Category: middle-end >Synopsis: GCC fails to bootstrap with 80+160MB memory / optimization >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Aug 09 07:16:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: >Release: 3.1 20010808 (experimental) >Organization: >Environment: System: SunOS hostname 5.6 Generic_105181-28 sun4m sparc sun4m Architecture: sun4 host: sparc-sun-solaris2.6 build: sparc-sun-solaris2.6 target: sparc-sun-solaris2.6 configured with: /sw/test/gcc/cvs/configure --prefix=/sw/test/gcc/SunOS --enable-languages=c,c++,objc,java >Description: Bootstrap on a sparc-sun-solaris2.6 box with 80MB of main memory plus 160MB of swap fails with "out of memory": stage2/xgcc -Bstage2/ -B/sw/test/gcc/SunOS/sparc-sun-solaris2.6/bin/ -c -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -I. -Ijava -I/sw/test/gcc/cvs/gcc -I/sw/test/gcc/cvs/gcc/java -I/sw/test/gcc/cvs/gcc/config -I/sw/test/gcc/cvs/gcc/../include /sw/test/gcc/cvs/gcc/java/parse.c -o java/parse.o cc1: Cannot allocate 8744016 bytes after allocating 27115520 bytes gmake[2]: *** [java/parse.o] Error 1 gmake[2]: Leaving directory `/tmp/OBJ-0808-0716/gcc' gmake[1]: *** [stage3_build] Error 2 gmake[1]: Leaving directory `/tmp/OBJ-0808-0716/gcc' gmake: *** [bootstrap-lean] Error 2 This is a regression from GCC 2.95.x and even GCC 3.0. Probably memory leaks and inefficient/too expensive optimizations. >How-To-Repeat: mkdir objdir ; cd objdir $GCC_SOURCE/configure --enable-languages=c,c++,objc,java make bootstrap >Fix: >Release-Note: >Audit-Trail: >Unformatted: