This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Add -Winvalid-pch to --help
- From: Geoffrey Keating <gkeating at apple dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 10 Jan 2003 16:42:27 -0800 (PST)
- Subject: Add -Winvalid-pch to --help
It looks like you have to do this by hand...
Bootstrapped & tested on powerpc-darwin.
--
- Geoffrey Keating <geoffk@apple.com>
===File ~/patches/gcc-invalidpchdoc.patch===================
2003-01-10 Geoffrey Keating <geoffk@apple.com>
* toplev.c (documented_lang_options): Document -Winvalid-pch.
Index: toplev.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.694
diff -u -p -u -p -r1.694 toplev.c
--- toplev.c 10 Jan 2003 02:22:04 -0000 1.694
+++ toplev.c 11 Jan 2003 00:41:32 -0000
@@ -1,6 +1,6 @@
/* Top level of GNU C compiler
Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of GCC.
@@ -1308,6 +1308,8 @@ documented_lang_options[] =
{ "-Wimport",
N_("Warn about the use of the #import directive") },
{ "-Wno-import", "" },
+ { "-Winvalid-pch",
+ N_("Warn about PCH files that are found but not used") },
{ "-Wlong-long","" },
{ "-Wno-long-long",
N_("Do not warn about using 'long long' when -pedantic") },
============================================================