This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: wrong comment in */lang_options.h
- To: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Subject: Re: wrong comment in */lang_options.h
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Fri, 5 Jan 2001 13:23:38 -0500
- Cc: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- References: <20001224032553.A25276@hg.cs.mu.oz.au>
On Sun, Dec 24, 2000 at 03:25:53AM +1100, Fergus Henderson wrote:
> The comment in */lang_options.h says
>
> This is the contribution to the `lang_options' array in gcc.c for
> <language>.
>
> but I think this is obsolete. AFAICT, it now affects the
> `document_lang_options' array in toplev.c.
Yep. Looks like the code got changed without the corresponding comments,
and nobody's noticed for... well, years, I think.
Fixed thusly. Passes all the usual build checks -- it should, since only
some comments and a texinfo manual were changed, but you never know --
and I'll shortly check this in under the typo slash obviously correct rule.
Phil
Index: ch/lang-options.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ch/lang-options.h,v
retrieving revision 1.4
diff -u -3 -r1.4 lang-options.h
--- lang-options.h 1999/08/25 08:20:06 1.4
+++ lang-options.h 2001/01/05 18:05:30
@@ -18,8 +18,8 @@
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-/* This is the contribution to the `lang_options' array in gcc.c for
- CHILL. */
+/* This is the contribution to the `documented_lang_options' array in
+ toplev.c for CHILL. */
/* CYGNUS LOCAL - the format of this file has been changed to
allow cc1 to implement --help. nickc/--help */
Index: cp/lang-options.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/lang-options.h,v
retrieving revision 1.36
diff -u -3 -r1.36 lang-options.h
--- lang-options.h 2000/06/06 20:11:40 1.36
+++ lang-options.h 2001/01/05 18:05:30
@@ -21,8 +21,8 @@
DEFINE_LANG_NAME ("C++")
-/* This is the contribution to the `lang_options' array in gcc.c for
- g++. */
+/* This is the contribution to the `documented_lang_options' array in
+ toplev.c for g++. */
{ "-faccess-control", "" },
{ "-fno-access-control", "Do not obey access control semantics" },
Index: f/lang-options.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/f/lang-options.h,v
retrieving revision 1.19
diff -u -3 -r1.19 lang-options.h
--- lang-options.h 2000/11/26 20:02:40 1.19
+++ lang-options.h 2001/01/05 18:05:30
@@ -21,8 +21,8 @@
*/
-/* This is the contribution to the `lang_options' array in gcc.c for
- g77. */
+/* This is the contribution to the `documented_lang_options' array in
+ toplev.c for g77. */
#ifdef __STDC__ /* To be consistent with lang-specs.h. Maybe avoid
overflowing some old compiler's tables, etc. */
Index: f/g77.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/f/g77.texi,v
retrieving revision 1.71
diff -u -3 -r1.71 g77.texi
--- g77.texi 2000/12/21 21:24:27 1.71
+++ g77.texi 2001/01/05 18:05:32
@@ -13889,7 +13889,7 @@
which is used during the build of @code{gcc} to
build a list of all options that are accepted by
at least one language's compiler.
-This list goes into the @code{lang_options} array
+This list goes into the @code{documented_lang_options} array
in @file{gcc/toplev.c}, which uses this array to
determine whether a particular option should be
offered to the linked-in front end for processing
Index: java/lang-options.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/lang-options.h,v
retrieving revision 1.20
diff -u -3 -r1.20 lang-options.h
--- lang-options.h 2000/11/25 19:28:44 1.20
+++ lang-options.h 2001/01/05 18:05:32
@@ -22,8 +22,8 @@
of Sun Microsystems, Inc. in the United States and other countries.
The Free Software Foundation is independent of Sun Microsystems, Inc. */
-/* This is the contribution to the `lang_options' array in gcc.c for
- java. */
+/* This is the contribution to the `documented_lang_options' array in
+ toplev.c for java. */
DEFINE_LANG_NAME ("Java")
Index: objc/lang-options.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/objc/lang-options.h,v
retrieving revision 1.2
diff -u -3 -r1.2 lang-options.h
--- lang-options.h 2000/11/29 22:19:28 1.2
+++ lang-options.h 2001/01/05 18:05:32
@@ -22,8 +22,8 @@
of Sun Microsystems, Inc. in the United States and other countries.
The Free Software Foundation is independent of Sun Microsystems, Inc. */
-/* This is the contribution to the `lang_options' array in gcc.c for
- Objective-C. */
+/* This is the contribution to the `documented_lang_options' array in
+ toplev.c for Objective-C. */
DEFINE_LANG_NAME ("Objective C")