diff options
author | kcook <kcook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-06 02:03:47 +0000 |
---|---|---|
committer | kcook <kcook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-06 02:03:47 +0000 |
commit | 9be279507a13f13b482ccca179e9e4d1b5d13877 (patch) | |
tree | a62be5846af4c96790969e619cf9f460f827bd3a /gcc/java/lang.c | |
parent | 3aa0c315acad780f429033997add7a41275eec8c (diff) | |
download | gcc-9be279507a13f13b482ccca179e9e4d1b5d13877.tar.gz |
2004-08-06 Kelley Cook <kcook@gcc.gnu.org>
* lang.c (flag_emit_class_files, flag_filelist_file, flag_redundant,
flag_use_divide_subroutine, flag_use_boehm_gc, flag_store_check,
flag_hash_synchronization, flag_assert, flag_jni, flag_newer,
flag_check_references, flag_extraneous_semicolon, flag_deprecated,
flag_force_classes_archive_check, flag_optimize_sci,
flag_indirect_dispatch): Remove explicit declarations.
* lang.opt: Add implicit declare/define/assign. Remove obsolete
final comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85622 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r-- | gcc/java/lang.c | 127 |
1 files changed, 5 insertions, 122 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c index f81388a4c23..6b48849c630 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -117,12 +117,6 @@ int compiling_from_source; const char *resource_name; -int flag_emit_class_files = 0; - -/* Nonzero if input file is a file with a list of filenames to compile. */ - -int flag_filelist_file = 0; - /* When nonzero, we emit xref strings. Values of the flag for xref backends are defined in xref_flag_table, xref.c. */ @@ -131,57 +125,9 @@ int flag_emit_xref = 0; /* When nonzero, -Wall was turned on. */ int flag_wall = 0; -/* When nonzero, check for redundant modifier uses. */ -int flag_redundant = 0; - -/* When nonzero, call a library routine to do integer divisions. */ -int flag_use_divide_subroutine = 1; - -/* When nonzero, generate code for the Boehm GC. */ -int flag_use_boehm_gc = 0; - -/* When nonzero, assume the runtime uses a hash table to map an - object to its synchronization structure. */ -int flag_hash_synchronization; - -/* When nonzero, permit the use of the assert keyword. */ -int flag_assert = 1; - -/* When nonzero, assume all native functions are implemented with - JNI, not CNI. */ -int flag_jni = 0; - -/* When nonzero, warn when source file is newer than matching class - file. */ -int flag_newer = 1; - -/* When nonzero, generate checks for references to NULL. */ -int flag_check_references = 0; - /* The encoding of the source file. */ const char *current_encoding = NULL; -/* When nonzero, report the now deprecated empty statements. */ -int flag_extraneous_semicolon; - -/* When nonzero, report use of deprecated classes, methods, or fields. */ -int flag_deprecated = 1; - -/* When nonzero, always check for a non gcj generated classes archive. */ -int flag_force_classes_archive_check; - -/* When zero, don't optimize static class initialization. This flag shouldn't - be tested alone, use STATIC_CLASS_INITIALIZATION_OPTIMIZATION_P instead. */ -/* FIXME: Make this work with gimplify. */ -int flag_optimize_sci = 0; - -/* When nonzero, use offset tables for virtual method calls - in order to improve binary compatibility. */ -int flag_indirect_dispatch = 0; - -/* When zero, don't generate runtime array store checks. */ -int flag_store_check = 1; - /* When nonzero, print extra version information. */ static int v_flag = 0; @@ -279,9 +225,6 @@ java_handle_option (size_t scode, const char *arg, int value) switch (code) { - default: - abort(); - case OPT_I: jcf_path_include_arg (arg); break; @@ -329,26 +272,6 @@ java_handle_option (size_t scode, const char *arg, int value) set_Wunused (value); break; - case OPT_Wdeprecated: - flag_deprecated = value; - break; - - case OPT_Wextraneous_semicolon: - flag_extraneous_semicolon = value; - break; - - case OPT_Wout_of_date: - flag_newer = value; - break; - - case OPT_Wredundant_modifiers: - flag_redundant = value; - break; - - case OPT_fassert: - flag_assert = value; - break; - case OPT_fenable_assertions_: add_enable_assert (arg, value); break; @@ -377,10 +300,6 @@ java_handle_option (size_t scode, const char *arg, int value) jcf_path_bootclasspath_arg (arg); break; - case OPT_fcheck_references: - flag_check_references = value; - break; - case OPT_fclasspath_: case OPT_fCLASSPATH_: jcf_path_classpath_arg (arg); @@ -395,11 +314,6 @@ java_handle_option (size_t scode, const char *arg, int value) return 0; break; - case OPT_femit_class_file: - case OPT_femit_class_files: - flag_emit_class_files = value; - break; - case OPT_fencoding_: current_encoding = arg; break; @@ -408,54 +322,23 @@ java_handle_option (size_t scode, const char *arg, int value) jcf_path_extdirs_arg (arg); break; - case OPT_ffilelist_file: - flag_filelist_file = value; - break; - - case OPT_fforce_classes_archive_check: - flag_force_classes_archive_check = value; - break; - - case OPT_fhash_synchronization: - flag_hash_synchronization = value; - break; - - case OPT_findirect_dispatch: - flag_indirect_dispatch = value; - break; - case OPT_finline_functions: flag_inline_functions = value; flag_really_inline = value; break; - case OPT_fjni: - flag_jni = value; - break; - - case OPT_foptimize_static_class_initialization: - flag_optimize_sci = value; - break; - case OPT_foutput_class_dir_: jcf_write_base_directory = arg; break; - case OPT_fstore_check: - flag_store_check = value; - break; - - case OPT_fuse_boehm_gc: - flag_use_boehm_gc = value; - break; - - case OPT_fuse_divide_subroutine: - flag_use_divide_subroutine = value; - break; - case OPT_version: v_flag = 1; break; + + default: + if (cl_options[code].flags & CL_Java) + break; + abort(); } return 1; |