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)



On Sep 16, 2005, at 1:21 PM, 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 is a proper fix as it also improves -O0 compile time and does not depend
on the optimizers to optimize this case. Not producing these trees in the
front-end also reduces memory usage which is a good thing for -O0.


Thanks,
Andrew Pinski


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