------- Comment #7 from rask at gcc dot gnu dot org 2007-10-28 12:40 ------- Created an attachment (id=14420) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14420&action=view) Reenable alloca() on non-GCC compilers
The memory fragmentation problem is to be caused by libiberty which disables alloca() if you bootstrap with a non-GCC compiler[1] (which I do). Instead you get a malloc() based replacment. The df_* functions use alloca() and are called a lot. With this patch on top of the next one, process size tops at around 185 MB compared to the 900+ MB it reached before, at which point I gave up with 256 MB of RAM. Just wondering, which compiler are you using to bootstrap GCC? [1] http://gcc.gnu.org/ml/gcc-patches/2001-03/msg00194.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29442