This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to pass -pedantic flag to cpplib




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]