This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][C++] Improve PR15855 (compile-time/memory hog)
- From: "Giovanni Bajo" <rasky at develer dot com>
- To: "Richard Guenther" <rguenther at suse dot de>
- Cc: <gcc-patches at gcc dot gnu dot org>,"Mark Mitchell" <mark at codesourcery dot com>
- Date: Fri, 16 Sep 2005 19:21:50 +0200
- Subject: Re: [PATCH][C++] Improve PR15855 (compile-time/memory hog)
- References: <Pine.LNX.4.58.0509161110560.7701@wotan.suse.de>
Richard Guenther <rguenther@suse.de> wrote:
> This patch makes the C++ frontend emit static initializers and
> destructors with exposing less jump-threading opportunities to DOM,
> which otherwise uses a gazillion amount of memory and compile-time.
I'm not a big fan of working around our own bugs. If DOM has compile-time
explosion, it means it needs tuning, not that we should tune our internally
generated code; users could exploit the same compile-time hog anyway.
On the other hands, if fixing this on release branches is impratical, I'd
suggest having this patch applied to release branches *only*, and wait for a
proper fix to happen on mainline. I believe there is still time to do proper
bug fixing to DOM in mainline, that is exactly what Stage 3 is for.
--
Giovanni Bajo