This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Fix build warnings for GAS on mips-linux-gnu

On Tue, Jun 12, 2012 at 07:39:58PM +0100, Iain Sandoe wrote:
> P.S.   As an aside, is it intentional that the fall-back specifications are not proper prototypes? 

Yes.  It saves trouble with "const char *" vs. "char *", "unsigned
long" vs. "unsigned int" and the like differences when we provide a
declaration that doesn't match some system header declaration.

> 	*  Check DECLS for free, getenv, malloc, realloc,
> 	stpcpy and strstr.
> 	* configure: Regenerate.
> 	* Likewise.

I'm applying this one instead as it saves a few lines in the generated

Index: gas/
RCS file: /cvs/src/src/gas/,v
retrieving revision 1.230
diff -u -p -r1.230
--- gas/	17 May 2012 15:13:16 -0000	1.230
+++ gas/	18 Jun 2012 03:27:08 -0000
@@ -663,11 +663,8 @@ AC_C_INLINE
 # VMS doesn't have unlink.
 AC_CHECK_FUNCS(unlink remove, break)
+AC_CHECK_FUNCS(free getenv malloc realloc sbrk setlocale stpcpy strstr)
-# Some systems don't have sbrk().
 # do we need the math library?

Alan Modra
Australia Development Lab, IBM

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]