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]

Patch: gcj "documentation" patch


`gcj --help -v' prints a lot of options we don't want people to use.
I think this is probably why we saw the PR about `-femit-class-files'
"not working" (it is an internal option that people should not use).

Instead of fixing the documentation to document things that people
shouldn't use anyway, I've written a patch to remove these options
from the `gcj --help -v' output.

At the same time I removed an unused variable.

Question: my understanding is that the -fassume-compiled code is not
really functional.  That is, if you use the option you'll run into
bugs or incomplete functionality.  On this assumption I removed this
option from the help output.

If instead this option works, tell me and I will document it in
gcj.texi.

I built this on my x86 box.  It appears to work fine.

Ok for trunk?

2001-07-05  Tom Tromey  <tromey@redhat.com>

        * lang.c (flag_assume_compiled): Removed.
        * java-tree.h (flag_assume_compiled): Removed.
        * lang-options.h: Removed -ffile-list-file, -fuse-boehm-gc,
        -fhash-synchronization, -fuse-divide-subroutine,
        -fcheck-references, -femit-class-file, -femit-class-files.
        Updated --encoding information.  Changed -foutput-class-dir to
        `-d'.

Tom

Index: lang.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/lang.c,v
retrieving revision 1.66
diff -u -r1.66 lang.c
--- lang.c 2001/06/28 12:26:38 1.66
+++ lang.c 2001/07/06 03:11:16
@@ -99,11 +99,6 @@
 
 const char * const language_string = "GNU Java";
 
-/* Nonzero if we should make is_compiled_class always return 1 for
-   appropriate classes that we're referencing.  */
-
-int flag_assume_compiled = 1;
-
 int flag_emit_class_files = 0;
 
 /* Nonzero if input file is a file with a list of filenames to compile. */
Index: java-tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/java-tree.h,v
retrieving revision 1.114
diff -u -r1.114 java-tree.h
--- java-tree.h 2001/06/27 20:38:20 1.114
+++ java-tree.h 2001/07/06 03:11:18
@@ -135,11 +135,6 @@
 #define all_class_list \
   java_global_trees[JTI_ALL_CLASS_LIST]
 
-/* Nonzero if we should make is_compiled_class always return 1 for
-   appropriate classes that we're referencing.  */
-
-extern int flag_assume_compiled;
-
 extern int flag_emit_class_files;
 
 extern int flag_filelist_file;
Index: lang-options.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/lang-options.h,v
retrieving revision 1.26
diff -u -r1.26 lang-options.h
--- lang-options.h 2001/05/26 05:28:26 1.26
+++ lang-options.h 2001/07/06 03:11:18
@@ -1,5 +1,5 @@
 /* Switch definitions for the GNU compiler for the Java(TM) language.
-   Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -30,18 +30,6 @@
   { "-fbounds-check", "" },
   { "-fno-bounds-check",
     N_("Disable automatic array bounds checking") },
-  { "-fassume-compiled",
-    N_("Make is_compiled_class return 1") },
-  { "-fno-assume-compiled", "" },
-  { "-femit-class-file", "" },
-  { "-femit-class-files",
-    N_("Dump class files to <name>.class") },
-  { "-ffilelist-file",
-    N_("input file is list of file names to compile") },
-  { "-fuse-boehm-gc",
-    N_("Generate code for Boehm GC") },
-  { "-fhash-synchronization",
-    N_("Don't put synchronization structure in each object") },
   { "-fjni",
     N_("Assume native functions are implemented using JNI") },
   { "--classpath",
@@ -51,16 +39,11 @@
   { "--main",
     N_("Choose class whose main method should be used") },
   { "--encoding",
-    N_("Choose input encoding (default is UTF-8)") },
+    N_("Choose input encoding (default comes from locale)") },
   { "-I",
     N_("Add directory to class path") },
-  { "-foutput-class-dir",
+  { "-d",
     N_("Directory where class files should be written") },
-  { "-fuse-divide-subroutine", "" },
-  { "-fno-use-divide-subroutine",
-    N_("Use built-in instructions for division") },
-  { "-fcheck-references",
-    N_("Generate null pointer checks inline") },
   { "-Wredundant-modifiers", 
     N_("Warn if modifiers are specified when not necessary") },
   { "-Wextraneous-semicolon",


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