chew failure on x86_64

Ian Lance Taylor ian@airs.com
Sat Jul 23 14:55:00 GMT 2005


Daniel Jacobowitz <drow@false.org> writes:

> > You can't call malloc without a prototype, when pointers are 64 bits
> > and integers are 32 bits.
> > 
> > 2005-07-22  DJ Delorie  <dj@redhat.com>
> > 
> > 	* chew.c: Include stdlib.h.
> 
> Thanks.  In fact, I didn't realize Kazu's patch left warnings in this
> file... We're missing prototypes for memcpy, strlen, and strcpy.
> 
> Now that we assume ISO C90, can we use <string.h> unconditionally?

We currently assume a C90 compiler, but we don't assume C90 libraries.

That said, we do assume in various places that <string.h> exists, so I
think that is safe.

Ian



More information about the Binutils mailing list