http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54179
--- Comment #13 from Jason Vas Dias <jason.vas.dias at gmail dot com> 2012-08-05 13:43:21 UTC --- RE: > Steven Bosscher 2012-08-05 12:37:28 UTC \ (In reply to comment #7) >> These memory requirements are solely due to the size of the .c file (1.8MB) . > > This is indeed excessive, we'll have to look into this. If you have > preprocessed source and the compilation flags, can you please attach it? Or if > you feel like helping out today, try to do a (non-bootstrap) build with > --enable-gather-statistics, compile the file, and report back the resulting > time and memory reports. compilation flags given in previous comment: $ tr '\0' ' ' < /proc/3863/cmdline /mnt/sda3/gcc/./prev-gcc/cc1 -quiet -I . -I . -I /usr/build2/gcc/gcc-4.7.1/gcc -I /usr/build2/gcc/gcc-4.7.1/gcc/. -I /usr/build2/gcc/gcc-4.7.1/gcc/../include -I /usr/build2/gcc/gcc-4.7.1/gcc/../libcpp/include -I /usr/build2/gcc/gcc-4.7.1/gcc/../libdecnumber -I /usr/build2/gcc/gcc-4.7.1/gcc/../libdecnumber/bid -I ../libdecnumber -iprefix /mnt/sda3/gcc/prev-gcc/../lib64/gcc/x86_64-pc-linux-gnu/4.7.1/ -isystem /mnt/sda3/gcc/./prev-gcc/include -isystem /mnt/sda3/gcc/./prev-gcc/include-fixed -D IN_GCC -D HAVE_CONFIG_H -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include insn-emit.c -quiet -dumpbase insn-emit.c -mtune=k8 -march=x86-64 -auxbase-strip insn-emit.o -g -gtoggle -O2 -Wextra -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -o /tmp/ccgsb5Pk.s Sorry I for the word-wrap in your website form - in my day, bugzilla / firefox didn't do that. Adding pre-processed source 'xz --compress -9' insn-emit.i.xz file of the PRE-PROCESSED C source - you mean the output of the previous command with '-o /tmp/ccgsb5Pk.s' replaced by '-E -o insn-emit.i' ? So the config options I'll now use (for my initial "C"-only build, which enables ONLY the "C" language, sufficient ONLY to pass the "C"-only test suite, and to recompile binutils, gmp, mpfr, mpc, and ppl + cloog for "C" only, making sure they pass their test suites, before rebuilding glibc and then GCC + G++ with '--enable-languages=all' and the new glibc, binutils, gmp, mpfr, mpc + ppl/cloog built with the C-only compiler. (this is the way I've always done it) : $ /usr/build2/gcc/gcc-4.7.1/configure --prefix=/usr --libdir=/usr/lib64 \ --enable-multilib --with-cpu-32=i686 --with-cpu-64=k8 \ --enable-version-specific-runtime-libs \ --enable-languages=c \ --enable-bootstrap \ --enable-stage1-languages=c \ --disable-build-with-cxx --disable-build-poststage1-with-cxx \ --enable-checking=release --enable-stage1-checking=release \ --enable-gather-statistics \ --enable-targets=all \ --enable-threads=posix --enable-tls \ --enable-lto --enable-shared \ --with-build-time-tools=/usr/bin \ --with-ld=/usr/bin/ld --with-gnu-ld \ --with-as=/usr/bin/as --with-gnu-as \ --with-system-zlib --without-included-gettext --enable-serial-configure \ --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu ?? I'll post the statistics files gathered after the build - where are they ? If any suggested changes, please advise soon. Thanks & Regards, Jason Vas Dias