This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to implement -Wunknown-pragmas
- To: Nick Clifton <nickc at cygnus dot com>
- Subject: Re: Patch to implement -Wunknown-pragmas
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 21 Dec 1997 16:27:10 -0700
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199710202210.PAA00478@elmo.cygnus.com>you write:
> After all the discussion, here is the patch to implement the
> -Wunknown-pragmas warning:
>
> gcc/ChangeLog:
> Mon Oct 20 10:43:15 1997 Nick Clifton <nickc@cygnus.com>
>
> * c-pragma.c (handle_pragma_token): Generate warning messages
> about unknown pragmas if warn_unknown_pragmas is set.
>
> * c-decl.c (c_decode_option): Parse -Wunknown-pragmas command
> line option to set variable: warn_unknown_pragmas.
>
> * invoke.texi (Warning Options): Document -Wunknown-pragmas
> command line option.
>
> gcc/cp/ChangeLog:
> Mon Oct 20 10:36:44 1997 Nick Clifton <nickc@cygnus.com>
>
> * decl2.c (lang_decode_option): Add support for command line
> option: -Wunknown-pragmas.
Just a minor note, I put a decl of warn_unknown_pragmas into flags.h
and installed your patch.
jeff