This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to pass -pedantic flag to cpplib
- To: Zack Weinberg <zack at bitmover dot com>
- Subject: Re: Patch to pass -pedantic flag to cpplib
- From: Dave Brolley <brolley at cygnus dot com>
- Date: Fri, 10 Sep 1999 12:32:13 -0400
- CC: nickc at cygnus dot co dot uk, gcc-patches at gcc dot gnu dot org
- Organization: Cygnus Solutions Canada Ltd
- References: <199909101613.JAA29321@zack.bitmover.com>
Zack Weinberg wrote:
> Nick Clifton wrote:
> > Hi Guys,
> >
> > I would like submit the following patch for approval. It fixes main
> > in toplev.c so that if the -pedantic command line switch has been
> > specified it will be passed onto cpplib to enable pedantic warnings
> > there.
>
> Rather than doing it this way, I would suggest that if USE_CPPLIB is
> on you feed *all* options through cpp_handle_option.
This might just be the best long term solution. But, like I said in my
proposed patch, don't call cpp_handle_option directly from toplev.c. Call
lang_decode_option. It is set up to ignore options it doesn't recognize.
Dave