On Mon, Apr 18, 2011 at 11:41:33PM +0300, Janne Blomqvist wrote:
> Hi,
> 
> the attached patch replaces gfc_getmem with calls to xcalloc (from
> libiberty). Apart from reducing duplicated code, calloc is better than
> malloc + memset, as the allocator knows that the kernel always gives
> out zeroed pages so in some cases it can avoid memset'in the area.
> 
> Regtested on x86_64-unknown-linux-gnu, Ok for trunk?
> 

OK.

(I suppose we'll never have sizeof(char) != 1).

-- 
Steve

Reply via email to