Use xmalloc rather than malloc

Alan Modra amodra@gmail.com
Fri Aug 14 00:21:06 GMT 2020


On Thu, Aug 13, 2020 at 05:55:03PM +0200, Matthias Klose wrote:
> that patch didn't include the generated ld/ldlex.c, at least on the 2.35 branch.

ld/ldlex.c isn't in git..

> On 8/3/20 9:39 AM, Alan Modra via Binutils wrote:
> > As far as I can tell, the following comment is false nowadays.
> > /* Calls to m-alloc get turned by sed into xm-alloc.  */
> > 
> > Remove it, and call xmalloc.
> > 
> > 	* ldlex.l (yy_create_string_buffer): Use xmalloc rather than malloc.
> > 	* lexsup.c (parse_args): Likewise.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list