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

Iain Sandoe iain@codesourcery.com
Tue Jun 12 18:40:00 GMT 2012


Hi,

The recent change introducing the itbl-lex-wrapper, produces the following build warnings for a cross from x86-linux-gnu -> mips-linux-gnu:

in file included from ../../src/binutils-mainline/gas/itbl-lex-wrapper.c:4:
../../src/binutils-mainline/gas/../bfd/sysdep.h:123: warning: function declaration isn't a prototype
../../src/binutils-mainline/gas/../bfd/sysdep.h:127: warning: function declaration isn't a prototype
../../src/binutils-mainline/gas/../bfd/sysdep.h:131: warning: function declaration isn't a prototype
../../src/binutils-mainline/gas/../bfd/sysdep.h:135: warning: function declaration isn't a prototype
../../src/binutils-mainline/gas/../bfd/sysdep.h:143: warning: function declaration isn't a prototype
In file included from ../../src/binutils-mainline/gas/as.h:187,

This is because the newly included bfd/sysdep.h tests several HAVE_DECL_xxx which are not provided by the configury in GAS.

The attached patch resolves that.

OK for trunk?
Iain

P.S.   As an aside, is it intentional that the fall-back specifications are not proper prototypes? 

===

gas/
	* configure.in:  Check DECLS for free, getenv, malloc, realloc,
	stpcpy and strstr.
	* configure: Regenerate.
	* config.in: Likewise.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gas-config-func-checks.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20120612/f5068df0/attachment.txt>


More information about the Binutils mailing list