+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,
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;
; 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)
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