This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Eliminating MD_CALL_PROTOTYPES
On Fri, May 19, 2000 at 02:22:33AM +0200, Gerald Pfeifer wrote:
> On Thu, 18 May 2000, Zack Weinberg wrote:
> > I'm firmly of the opinion that cc1plus should shut up about -W options
> > it doesn't implement.
>
> If the user specifies an option that is not supported by a frontend we
> should not silently ignore that. That's an issue of user interface design.
In this case I think good UI design dictates that any -W option
accepted by any front end should be acceptable to all front ends.
That way you can compile a large, multi-language project - such as
gcc! - using the same set of command line options throughout.
In this particular instance, both -Wstrict-prototypes and
-Wmissing-prototypes are on by default in C++ and there is no way to
turn them off. cc1plus silently accepts either -Wmissing-prototypes
or -Wno-missing-prototypes (but neither has any effect), and loudly
complains bout -W(no-)strict-prototypes. This is inconsistent, IMO.
zw