http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47555
Summary: Huge memory usage when optimizing Product: gcc Version: 4.4.5 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: matthijs.do...@inria.fr Created attachment 23186 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23186 code that triggers the bug Hello, The attached code contains manually unrolled loops. When compiling it with cc -c bug2.c -O2 the memory usage of the cc1 process grows above 3.5 GB (before killing it). cc -v gives: Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.4.5 (Debian 4.4.5-8) The bug does appear with cc -O2, cc -O3, not with cc -O1. gcc 4.3.2 also uses a lot of memory but manages to compile it in the end. Thanks