diff options
author | Greg McGary <gkm@gnu.org> | 1999-10-16 01:25:52 +0000 |
---|---|---|
committer | Greg McGary <gkm@gcc.gnu.org> | 1999-10-16 01:25:52 +0000 |
commit | 13f9ac51e34061acb318e8d7a8195debf87e0ec3 (patch) | |
tree | b69124812eb9790df14c15bf1a195bdbec7d18fd /gcc/java/lang.c | |
parent | a8aa79754dcc89603567741aac26db144a430700 (diff) | |
download | gcc-13f9ac51e34061acb318e8d7a8195debf87e0ec3.zip gcc-13f9ac51e34061acb318e8d7a8195debf87e0ec3.tar.gz gcc-13f9ac51e34061acb318e8d7a8195debf87e0ec3.tar.bz2 |
java-tree.h (flag_bounds_check): Remove extern decl.
* java-tree.h (flag_bounds_check): Remove extern decl.
* lang.c (flag_bounds_check): Remove global variable.
(lang_f_options): Remove "bounds-check" entry.
(lang_init_options): Default flag_bounds_check to "on".
From-SVN: r30036
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r-- | gcc/java/lang.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c index 93161ef..018f93d 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -83,11 +83,6 @@ int compiling_from_source; const char * const language_string = "GNU Java"; -/* Nonzero if we want to automatically do array bounds checking; - on by default. Use -fno-bounds-check to disable. */ - -int flag_bounds_check = 1; - /* Nonzero if we should make is_compiled_class always return 1 for appropriate classes that we're referencing. */ @@ -129,7 +124,6 @@ extern int flag_exceptions; static struct { const char *string; int *variable; int on_value;} lang_f_options[] = { - {"bounds-check", &flag_bounds_check, 1}, {"assume-compiled", &flag_assume_compiled, 1}, {"emit-class-file", &flag_emit_class_files, 1}, {"emit-class-files", &flag_emit_class_files, 1}, @@ -554,6 +548,7 @@ void lang_init_options () { flag_new_exceptions = 1; + flag_bounds_check = 1; } void |