goodbye, MD_CALL_PROTOTYPES

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Thu Feb 24 08:52:00 GMT 2000


 > From: Zack Weinberg <zack@wolery.cumb.org>
 > 
 > This patch eliminates the MD_CALL_PROTOTYPES macro, and causes
 > gen_call and friends to be prototyped with the rest of the gen_insn
 > functions.  With this done, an i386 native build has only 50 or so
 > -W(strict,missing)-prototypes warnings, most of which are in libgcc2.

FYI, I believe I zap all the libgcc2 prototype warnings in the
following patch:
http://gcc.gnu.org/ml/gcc-patches/2000-02/msg00358.html

After "call" prototypes and libgcc2, the only remaining problem stems
from the libiberty.h prototype for basename() and the getopt.h
prototype for getopt().  You won't see it on linux, only on non-glibc
hosts where it backs down to no arguments due to possible argument
type conflicts (mostly with "const".)

I'm slowly encouraging the autoconf people to include something
generic we can use to replace our GCC_NEED_DECLARATION so we can use
it in exported library interfaces.  In the mean time, perhaps we can
stick something in libiberty/aclocal.m4 and coordinate with
gcc/aclocal.m4 until the next autoconf release.  That would allow us
to turn on -Wstrict-prototypes for all hosts, not just glibc ones.

		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions


More information about the Gcc-patches mailing list