diff options
author | gkm <gkm@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-16 01:25:52 +0000 |
---|---|---|
committer | gkm <gkm@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-16 01:25:52 +0000 |
commit | 96f23ba319ad475c45f2787bc3a5ef8220740d1a (patch) | |
tree | b69124812eb9790df14c15bf1a195bdbec7d18fd /gcc/java | |
parent | 5e57d7a8002420515f888c8ac1732e9401cd8290 (diff) | |
download | ppe42-gcc-96f23ba319ad475c45f2787bc3a5ef8220740d1a.tar.gz ppe42-gcc-96f23ba319ad475c45f2787bc3a5ef8220740d1a.zip |
* 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".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30036 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/java/java-tree.h | 5 | ||||
-rw-r--r-- | gcc/java/lang.c | 7 |
3 files changed, 8 insertions, 11 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 27a36f9e2de..33b2f854f45 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,10 @@ +1999-10-15 Greg McGary <gkm@gnu.org> + + * 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". + 1999-10-14 Tom Tromey <tromey@cygnus.com> * jvgenmain.c (usage): New function. diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index c13f0955fc5..781721f0b19 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -115,11 +115,6 @@ extern tree current_class; /* List of all class DECLs seen so far. */ extern tree all_class_list; -/* Nonzero if we want to automatically do array bounds checking; - on by default. Use -fno-bounds-check to disable. */ - -extern int flag_bounds_check; - /* Nonzero if we should make is_compiled_class always return 1 for appropriate classes that we're referencing. */ diff --git a/gcc/java/lang.c b/gcc/java/lang.c index 93161efd2c3..018f93d693a 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 |