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: Jeffrey A Law <law at redhat dot com>
- To: Giovanni Bajo <rasky at develer dot com>
- Cc: Richard Guenther <rguenther at suse dot de>, gcc-patches at gcc dot gnu dot org, Mark Mitchell <mark at codesourcery dot com>
- Date: Fri, 16 Sep 2005 14:04:53 -0600
- Subject: Re: [PATCH][C++] Improve PR15855 (compile-time/memory hog)
- References: <Pine.LNX.4.58.0509161110560.7701@wotan.suse.de> <055901c5bae3$201ea930$bf03030a@trilan>
- Reply-to: law at redhat dot com
On Fri, 2005-09-16 at 19:21 +0200, Giovanni Bajo wrote:
> 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.
This one really isn't a question of tuning -- this one is really best
fixed by fixing the C++ front-end if that's possible (I'm nowhere near
familiar enough with the C++ front-end to tackle that).
Jef