This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][C++] Improve PR15855 (compile-time/memory hog)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]