aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/java/ChangeLog7
-rw-r--r--gcc/java/java-tree.h3
-rw-r--r--gcc/java/lang.opt4
-rw-r--r--gcc/java/parse.y2
4 files changed, 10 insertions, 6 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index bf424bf..49c40ee 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,10 @@
+2004-08-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ * java-tree.h (flag_deprecated): Removed.
+ * lang.opt (Wdeprecated): Use existing Var(warn_deprecated).
+ * parse.y (check_deprecation): Check warn_deprecated instead of
+ flag_deprecated.
+
2004-08-06 Kelley Cook <kcook@gcc.gnu.org>
* lang.c (flag_emit_class_files, flag_filelist_file, flag_redundant,
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h
index f44005d..1b707c6 100644
--- a/gcc/java/java-tree.h
+++ b/gcc/java/java-tree.h
@@ -180,9 +180,6 @@ extern int flag_jni;
extern int flag_extraneous_semicolon;
-/* When nonzero, report use of deprecated classes, methods, or fields. */
-extern int flag_deprecated;
-
/* When nonzero, always check for a non gcj generated classes archive. */
extern int flag_force_classes_archive_check;
diff --git a/gcc/java/lang.opt b/gcc/java/lang.opt
index 8cac2db..2711193 100644
--- a/gcc/java/lang.opt
+++ b/gcc/java/lang.opt
@@ -62,8 +62,8 @@ Java
; Documented for C
Wdeprecated
-Java Var(flag_deprecated) Init(1)
-Warn if deprecated class, method, or field is used
+Java Var(warn_deprecated) VarExists
+Warn if a deprecated compiler feature, class, method, or field is used
Wextraneous-semicolon
Java Var(flag_extraneous_semicolon)
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index fdff746..3b08ad2 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -10095,7 +10095,7 @@ check_deprecation (tree wfl, tree decl)
const char *file;
tree elt;
- if (! flag_deprecated)
+ if (! warn_deprecated)
return;
/* We want to look at the element type of arrays here, so we strip