[Bug c++/12850] [3.4 Regression] memory consumption for heavy template instantiations tripled since 3.3
cvs-commit at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jan 13 23:59:00 GMT 2004
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-01-13 23:59 -------
Subject: Bug 12850
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: hubicka@gcc.gnu.org 2004-01-13 23:59:20
Modified files:
gcc : ChangeLog cgraphunit.c
gcc/cp : ChangeLog decl2.c optimize.c
Log message:
Partial fix PR c++/12850
* cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
at zero nest level.
* decl2.c (mark_used): Do not proactively instantiate templates
when compiling in unit-at-a-time or not optimizing.
* optimize.c (maybe_clone_body): Do not increase function depth.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.2270&r2=2.2271
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cgraphunit.c.diff?cvsroot=gcc&r1=1.44&r2=1.45
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3875&r2=1.3876
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl2.c.diff?cvsroot=gcc&r1=1.694&r2=1.695
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/optimize.c.diff?cvsroot=gcc&r1=1.102&r2=1.103
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12850
More information about the Gcc-bugs
mailing list