Makefile.in, [...]: Remove handling of lang-options.h and options_.h.
authorNeil Booth <neil@daikokuya.co.uk>
Fri, 18 Jul 2003 05:32:42 +0000 (05:32 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Fri, 18 Jul 2003 05:32:42 +0000 (05:32 +0000)
* Makefile.in, configure, configure.in: Remove handling of
lang-options.h and options_.h.
* toplev.c (struct lang_opt, documented_lang_options): Remove.
(display_help): Don't use documented_lang_options.
ada:
* lang-options.h: Remove.
* lang.opt: Add help text.
java:
* lang-options.h: Remove.
* lang.opt: Add help text.

From-SVN: r69544

gcc/ChangeLog
gcc/Makefile.in
gcc/ada/ChangeLog
gcc/ada/lang-options.h [deleted file]
gcc/ada/lang.opt
gcc/configure
gcc/configure.in
gcc/java/ChangeLog
gcc/java/lang-options.h [deleted file]
gcc/java/lang.opt
gcc/toplev.c

index 890dfdaaed506401a7ca3c71b06cafb0042cb279..4f80106551a49c1bfd3d0e2f64da8e58f5c25f0a 100644 (file)
@@ -1,3 +1,10 @@
+2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
+
+       * Makefile.in, configure, configure.in: Remove handling of
+       lang-options.h and options_.h.
+       * toplev.c (struct lang_opt, documented_lang_options): Remove.
+       (display_help): Don't use documented_lang_options.
+
 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
 
        * c-decl.c (pushdecl_function_level): Make static, return nothing.
index 7ba4fa912f4b957ffbee7ae66a6eb857967c1e3a..bbe8561a085da0d362b88e2c20a75205be50ef3b 100644 (file)
@@ -356,7 +356,6 @@ xm_file=@xm_file@
 xm_defines=@xm_defines@
 lang_opt_files=@lang_opt_files@ $(srcdir)/c.opt $(srcdir)/common.opt
 lang_specs_files=@lang_specs_files@
-lang_options_files=@lang_options_files@
 lang_tree_files=@lang_tree_files@
 target_cpu_default=@target_cpu_default@
 GCC_THREAD_FILE=@thread_file@
@@ -1407,14 +1406,6 @@ s-gencheck : Makefile
        $(SHELL) $(srcdir)/move-if-change tmp-gencheck.h gencheck.h
        $(STAMP) s-gencheck
 
-options_.h : s-options ; @true
-s-options : Makefile
-       lof="$(lang_options_files)"; for f in $$lof; do \
-           echo "#include \"$$f\""; \
-       done | sed 's|$(srcdir)/||' > tmp-options_.h
-       $(SHELL) $(srcdir)/move-if-change tmp-options_.h options_.h
-       $(STAMP) s-options
-
 specs.h : s-specs ; @true
 s-specs : Makefile
        lsf="$(lang_specs_files)"; for f in $$lsf; do \
@@ -1492,9 +1483,9 @@ toplev.o : toplev.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_
    function.h flags.h xcoffout.h input.h $(INSN_ATTR_H) output.h diagnostic.h \
    debug.h insn-config.h intl.h $(RECOG_H) Makefile toplev.h \
    dwarf2out.h sdbout.h dbxout.h $(EXPR_H) hard-reg-set.h $(BASIC_BLOCK_H) \
-   graph.h $(LOOP_H) except.h $(REGS_H) $(TIMEVAR_H) $(lang_options_files) \
+   graph.h $(LOOP_H) except.h $(REGS_H) $(TIMEVAR_H) \
    ssa.h $(PARAMS_H) $(TM_P_H) reload.h dwarf2asm.h $(TARGET_H) \
-   langhooks.h insn-flags.h options_.h cfglayout.h real.h cfgloop.h \
+   langhooks.h insn-flags.h cfglayout.h real.h cfgloop.h \
    hosthooks.h $(LANGHOOKS_DEF_H) cgraph.h $(COVERAGE_H)
        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
          -DTARGET_NAME=\"$(target_alias)\" \
index cc2d36df7e01cabc61254a5dabde6f76a5efe705..e5764a4b35892558344ac7107465b9a5fbe133e6 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
+
+       * lang-options.h: Remove.
+       * lang.opt: Add help text.
+
 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
 
        * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
diff --git a/gcc/ada/lang-options.h b/gcc/ada/lang-options.h
deleted file mode 100644 (file)
index 99ef12f..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/****************************************************************************
- *                                                                          *
- *                         GNAT COMPILER COMPONENTS                         *
- *                                                                          *
- *                          L A N G - O P T I O N S                         *
- *                                                                          *
- *                              C Header File                               *
- *                                                                          *
- *                                                                          *
- *           Copyright (C) 1992-2001 Free Software Foundation, Inc.         *
- *                                                                          *
- * GNAT is free software;  you can  redistribute it  and/or modify it under *
- * terms of the  GNU General Public License as published  by the Free Soft- *
- * ware  Foundation;  either version 2,  or (at your option) any later ver- *
- * sion.  GNAT is distributed in the hope that it will be useful, but WITH- *
- * OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY *
- * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License *
- * for  more details.  You should have  received  a copy of the GNU General *
- * Public License  distributed with GNAT;  see file COPYING.  If not, write *
- * to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, *
- * MA 02111-1307, USA.                                                      *
- *                                                                          *
- * GNAT was originally developed  by the GNAT team at  New York University. *
- * Extensive contributions were provided by Ada Core Technologies Inc.      *
- *                                                                          *
- ****************************************************************************/
-
-DEFINE_LANG_NAME ("Ada")
-
-/* This is the contribution to the `lang_options' array in gcc.c for
-   GNAT.  */
-
-  {"-gnat", "Specify options to GNAT"},
-  {"-gant", ""},
-  {"-I", "Name of directory to search for sources"},
-  {"-nostdinc", "Don't use system library for sources"},
-
-
index 9d8b7ab221ddbb26f72d0ebe597d13b096ec8fb6..393c72d14e71102909247c6cbbec9fc6a992a9cf 100644 (file)
@@ -27,17 +27,21 @@ Ada
 
 I
 Ada Joined Separate
+; Documented for C
 
 Wall
 Ada
+; Documented for C
 
 fRTS
 Ada RejectNegative
 
 gant
-Ada Joined
+Ada Joined Undocumented
+; Catches typos
 
 gnat
 Ada Joined
+-gnat<option>  Specify options to GNAT
 
 ; This comment is to ensure we retain the blank line above.
index e17b867be9809c57b7eba4a6dec1d5ee1f96e1c2..860fb4daa0aec94ef3e54cbc2942eaae090c2ba2 100755 (executable)
@@ -7519,7 +7519,6 @@ fi
 
 lang_opt_files=
 lang_specs_files=
-lang_options_files=
 lang_tree_files=
 for subdir in . $subdirs
 do
@@ -7529,9 +7528,6 @@ do
        if test -f $srcdir/$subdir/lang-specs.h; then
            lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
        fi
-       if test -f $srcdir/$subdir/lang-options.h; then
-           lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
-       fi
        if test -f $srcdir/$subdir/$subdir-tree.def; then
            lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
        fi
@@ -8101,7 +8097,6 @@ s%@host_xm_defines@%$host_xm_defines%g
 s%@out_host_hook_obj@%$out_host_hook_obj%g
 s%@install@%$install%g
 s%@lang_opt_files@%$lang_opt_files%g
-s%@lang_options_files@%$lang_options_files%g
 s%@lang_specs_files@%$lang_specs_files%g
 s%@lang_tree_files@%$lang_tree_files%g
 s%@local_prefix@%$local_prefix%g
index 416b8ebc5aff60557e3704141d435a26badbad10..f2c581d4fe966e7d500c9e21d69bc968a4f97773 100644 (file)
@@ -2661,7 +2661,6 @@ AC_SUBST(MAINT)dnl
 
 lang_opt_files=
 lang_specs_files=
-lang_options_files=
 lang_tree_files=
 for subdir in . $subdirs
 do
@@ -2671,9 +2670,6 @@ do
        if test -f $srcdir/$subdir/lang-specs.h; then
            lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
        fi
-       if test -f $srcdir/$subdir/lang-options.h; then
-           lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
-       fi
        if test -f $srcdir/$subdir/$subdir-tree.def; then
            lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
        fi
@@ -2912,7 +2908,6 @@ AC_SUBST(host_xm_defines)
 AC_SUBST(out_host_hook_obj)
 AC_SUBST(install)
 AC_SUBST(lang_opt_files)
-AC_SUBST(lang_options_files)
 AC_SUBST(lang_specs_files)
 AC_SUBST(lang_tree_files)
 AC_SUBST(local_prefix)
index 07f5bcc937c96d98cbf490fcec31c49d3e54305b..bc27074f89dc20ac1cfeb5262fe58f540305d9d6 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
+
+       * lang-options.h: Remove.
+       * lang.opt: Add help text.
+
 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
 
        * expr.c: Remove the last argument to expand_assignment().
diff --git a/gcc/java/lang-options.h b/gcc/java/lang-options.h
deleted file mode 100644 (file)
index e0e69ee..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-/* Switch definitions for the GNU compiler for the Java(TM) language.
-   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
-   Free Software Foundation, Inc.
-
-This file is part of GCC.
-
-GCC is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GCC is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GCC; see the file COPYING.  If not, write to
-the Free Software Foundation, 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA.  
-
-Java and all Java-based marks are trademarks or registered trademarks
-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 `documented_lang_options' array in
-   toplev.c for java.  */
-
-DEFINE_LANG_NAME ("Java")
-
-  { "-fbounds-check", "" },
-  { "-fno-bounds-check",
-    N_("Disable automatic array bounds checking") },
-  { "-fno-store-check",
-    N_("Disable assignability checks for stores into object arrays") },
-  { "-fjni",
-    N_("Assume native functions are implemented using JNI") },
-  { "--bootclasspath",
-    N_("Replace system path") },
-  { "--classpath",
-    N_("Set class path") },
-  { "--CLASSPATH",
-    N_("Set class path (deprecated: use --classpath instead)") },
-  { "--main",
-    N_("Choose class whose main method should be used") },
-  { "--encoding",
-    N_("Choose input encoding (default comes from locale)") },
-  { "-I",
-    N_("Add directory to class path") },
-  { "-d",
-    N_("Directory where class files should be written") },
-  { "-Wredundant-modifiers", 
-    N_("Warn if modifiers are specified when not necessary") },
-  { "-Wextraneous-semicolon",
-    N_("Warn if deprecated empty statements are found") },
-  { "-Wout-of-date",
-    N_("Warn if .class files are out of date") },
-  { "-Wdeprecated",
-    N_("Warn if deprecated class, method, or field is used") },
-  { "-fforce-classes-archive-check", 
-    N_("Always check for non gcj generated classes archives") },
-  { "-fno-optimize-static-class-initialization",
-    N_("Never optimize static class initialization code") },
-  { "-findirect-dispatch",
-    N_("Use offset tables for virtual method calls") },
index ed8d02ee1511d48fde410eca25288338ff8f5aab..6fd0a605c3bb78eef88b98f17c02b898c12a8be4 100644 (file)
@@ -27,45 +27,59 @@ Java
 
 I
 Java Joined
+; Documented for C
 
 M
 Java
+; Documented for C
 
 MD_
 Java
+; Documented for C
 
 MF
 Java Separate
+; Documented for C
 
 MM
 Java
+; Documented for C
 
 MMD_
 Java
+; Documented for C
 
 MP
 Java
+; Documented for C
 
 MT
 Java Separate
+; Documented for C
 
 Wall
 Java
+; Documented for C
 
 Wdeprecated
 Java
+Warn if deprecated class, method, or field is used
 
 Wextraneous-semicolon
 Java
+Warn if deprecated empty statements are found
 
 Wout-of-date
 Java
+Warn if .class files are out of date
 
 Wredundant-modifiers
 Java
+Warn if modifiers are specified when not necessary
 
 fCLASSPATH=
 Java JoinedOrMissing RejectNegative
+--CLASSPATH    Deprecated; use --classpath instead
 
 fassert
 Java
@@ -78,12 +92,14 @@ Java JoinedOrMissing
 
 fbootclasspath=
 Java JoinedOrMissing RejectNegative
+--bootclasspath=<path> Replace system path
 
 fcheck-references
 Java
 
 fclasspath=
 Java JoinedOrMissing RejectNegative
+--classpath=<path>     Set class path
 
 fcompile-resource=
 Java Joined RejectNegative
@@ -99,6 +115,7 @@ Java
 
 fencoding=
 Java Joined RejectNegative
+--encoding=<encoding>  Choose input encoding (defaults from your locale)
 
 fextdirs=
 Java Joined RejectNegative
@@ -108,27 +125,32 @@ Java
 
 fforce-classes-archive-check
 Java
+Always check for non gcj generated classes archives
 
 fhash-synchronization
 Java
 
 findirect-dispatch
 Java
+Use offset tables for virtual method calls
 
 finline-functions
 Java
 
 fjni
 Java
+Assume native functions are implemented using JNI
 
 foptimize-static-class-initialization
 Java
+Enable optimization of static class initialization code
 
 foutput-class-dir=
 Java Joined RejectNegative
 
 fstore-check
 Java
+Enable assignability checks for stores into object arrays
 
 fuse-boehm-gc
 Java
index 4e34bc150d34383211894bcd0ef833f26496c656..eac556284f8dfab2f93b3056f81381bf8af3b76a 100644 (file)
@@ -1179,22 +1179,6 @@ static const lang_independent_options f_options[] =
   { "new-ra", &flag_new_regalloc, 1 }
 };
 
-/* Table of language-specific options.  */
-
-static const struct lang_opt
-{
-  const char *const option;
-  const char *const description;
-}
-documented_lang_options[] =
-{
-#define DEFINE_LANG_NAME(NAME) { NULL, NAME },
-
-#include "options_.h"
-
-  { NULL, "Dummy" }
-};
-
 /* Here is a table, controlled by the tm.h file, listing each -m switch
    and which bits in `target_switches' it should set or clear.
    If VALUE is positive, it is bits to set.
@@ -3605,9 +3589,7 @@ rest_of_compilation (tree decl)
 void
 display_help (void)
 {
-  int undoc;
   unsigned long i;
-  const char *lang;
 
   for (i = LAST_PARAM; i--;)
     {
@@ -3628,56 +3610,6 @@ display_help (void)
                debug_args[i].arg, _(debug_args[i].description));
     }
 
-  undoc = 0;
-  lang  = "language";
-
-  /* Display descriptions of language specific options.
-     If there is no description, note that there is an undocumented option.
-     If the description is empty, do not display anything.  (This allows
-     options to be deliberately undocumented, for whatever reason).
-     If the option string is missing, then this is a marker, indicating
-     that the description string is in fact the name of a language, whose
-     language specific options are to follow.  */
-
-  if (ARRAY_SIZE (documented_lang_options) > 1)
-    {
-      printf (_("\nLanguage specific options:\n"));
-
-      for (i = 0; i < ARRAY_SIZE (documented_lang_options); i++)
-       {
-         const char *description = documented_lang_options[i].description;
-         const char *option      = documented_lang_options[i].option;
-
-         if (description == NULL)
-           {
-             undoc = 1;
-
-             if (extra_warnings)
-               printf (_("  %-23s [undocumented]\n"), option);
-           }
-         else if (*description == 0)
-           continue;
-         else if (option == NULL)
-           {
-             if (undoc)
-               printf
-                 (_("\nThere are undocumented %s specific options as well.\n"),
-                       lang);
-             undoc = 0;
-
-             printf (_("\n Options for %s:\n"), description);
-
-             lang = description;
-           }
-         else
-           printf ("  %-23s %s\n", option, _(description));
-       }
-    }
-
-  if (undoc)
-    printf (_("\nThere are undocumented %s specific options as well.\n"),
-           lang);
-
   display_target_options ();
 }