On 07 Mar 2006 11:57:24 -0800, mathieu lacage wrote:
>
>>>I am looking for a workaround to what appears to be a make 3.80 bug. A
>>>bit of googling turned up this:
>>
>>Based on recommendations from Paul Smith, I added some "alloc(0)"
>>statements in various routines before return (read.c, etc).  This
>>frees up some memory.  But I was still not able to eliminate the
>>problem entirely.
>>  
>>
>
> I believe my problem is probably different: it happens only when a
> function defines a target with a long (where long seems to be very
> variable) dependency list and the fonction is evaled in a foreach.
>
> As a side note, this does not happen on pretty much every linux
> distribution: the make patches they have integrated seem to fix this
> issue.
>
> Mathieu
>

Nevertheless, I wonder if there might be an alloca-type memory leak
going on here.  I see that Paul added some 'alloca (0);' lines in
read.c.  You could try 3.81rc1, edit function.c,  and add 'alloca
(0);' just before the 'free (result);' line in func_foreach.  That's
probably overkill, as well as a serious slowdown, but it could give
Paul a better idea about how to workaround the problem.

Ted
-- 
 dodecatheon at gmail dot com
 Frango ut patefaciam -- I break so that I may reveal


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to