java-tree.h (flag_deprecated): Removed.

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.

From-SVN: r85740
This commit is contained in:
H.J. Lu 2004-08-10 04:29:16 +00:00 committed by H.J. Lu
parent 2bf26ede97
commit bbefea9662
4 changed files with 10 additions and 6 deletions

View File

@ -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,

View File

@ -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;

View File

@ -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)

View File

@ -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