This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53226] memory consumption for heavy template instantiations increased massively
- From: "mario-baumann at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 08 May 2012 07:54:22 +0000
- Subject: [Bug c++/53226] memory consumption for heavy template instantiations increased massively
- Auto-submitted: auto-generated
- References: <bug-53226-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53226
--- Comment #6 from Mario Baumann <mario-baumann at web dot de> 2012-05-08 07:54:22 UTC ---
Created attachment 27341
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27341
c++ source
Added testcase (needs include files from boost ->
http://sourceforge.net/projects/boost/files/boost/1.49.0/ -> just extract any
tarball).
> /app2/gcc/4.8.0-20120507-svn187053/x86_64/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/app2/gcc/4.8.0-20120507-svn187053/x86_64/bin/g++
COLLECT_LTO_WRAPPER=/app2/gcc/4.8.0-20120507-svn187053/x86_64/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --prefix=/app2/gcc/4.8.0-20120507-svn187053/x86_64
--enable-languages=c,c++,fortran --disable-nls
--with-gmp=/app2/gcc/4.8.0-20120507-svn187053/x86_64/aux
--with-mpfr=/app2/gcc/4.8.0-20120507-svn187053/x86_64/aux
--with-mpc=/app2/gcc/4.8.0-20120507-svn187053/x86_64/aux
--with-ppl=/app2/gcc/4.8.0-20120507-svn187053/x86_64/aux
--with-cloog=/app2/gcc/4.8.0-20120507-svn187053/x86_64/aux
Thread model: posix
gcc version 4.8.0 20120502 (experimental) (GCC)
bad: g++ -Iboost_1_49_0/ -c foo.cpp -O2 -m64
bad: g++ -Iboost_1_49_0/ -c foo.cpp -O1 -m64
ok: g++ -Iboost_1_49_0/ -c foo.cpp -O0 -m64
ok: g++ -Iboost_1_49_0/ -c foo.cpp -O2 -m32
Mario.