From: H.J. Lu Date: Tue, 10 Aug 2004 04:29:16 +0000 (+0000) Subject: java-tree.h (flag_deprecated): Removed. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bbefea96623c01fd9915585adc21cfdbdd59746d;p=gcc.git java-tree.h (flag_deprecated): Removed. 2004-08-09 H.J. Lu * 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 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index bf424bfd922..49c40ee4149 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,10 @@ +2004-08-09 H.J. Lu + + * 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 * 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 f44005d0f2e..1b707c68efb 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 8cac2db15ba..2711193e46e 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 fdff7467649..3b08ad27f1e 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