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

Maciej W. Rozycki macro@codesourcery.com
Mon Jul 9 18:34:00 GMT 2012


On Mon, 18 Jun 2012, Alan Modra 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.

 Hmm, two issues here:

1. Does it really matter given that the actual purpose of these fallback 
   declarations is to address the case where there are no respective 
   system-header declarations or prototypes in the first place (assuming 
   of course that e.g. sizeof (unsigned long) equals sizeof (unsigned 
   int) where applicable)?

2. How does it play with -Werror that we use? -- these "function
   declaration isn't a prototype" warnings will be turned into errors 
   defeating the purpose of these fallback declarations.

  Maciej



More information about the Binutils mailing list