From b1117741f1cb3690e04fd39175efaee1f30cace3 Mon Sep 17 00:00:00 2001 From: Alexandre Petit-Bianco Date: Thu, 18 Jan 2001 03:07:01 +0000 Subject: [PATCH] lang-options.h (-Wunsupported-jdk11): Removed. 2001-01-17 Alexandre Petit-Bianco * lang-options.h (-Wunsupported-jdk11): Removed. * lang.c (flag_not_overriding): Deleted. (flag_static_local_jdk1_1): Likewise. (lang_W_options): Removed "unsupported-jdk11" entry. * parse.y (java_check_methods): Removed dead code. (http://gcc.gnu.org/ml/gcc-patches/2001-01/msg01479.html) From-SVN: r39107 --- gcc/java/ChangeLog | 8 ++++++++ gcc/java/lang-options.h | 1 - gcc/java/lang.c | 7 ------- gcc/java/parse.y | 18 ------------------ 4 files changed, 8 insertions(+), 26 deletions(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index e904b747036..7e8be3406a8 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,11 @@ +2001-01-17 Alexandre Petit-Bianco + + * lang-options.h (-Wunsupported-jdk11): Removed. + * lang.c (flag_not_overriding): Deleted. + (flag_static_local_jdk1_1): Likewise. + (lang_W_options): Removed "unsupported-jdk11" entry. + * parse.y (java_check_methods): Removed dead code. + 2001-01-17 Tom Tromey Changes suggested by Per Bothner: diff --git a/gcc/java/lang-options.h b/gcc/java/lang-options.h index 9717dbd0c5e..ce6289cd4d7 100644 --- a/gcc/java/lang-options.h +++ b/gcc/java/lang-options.h @@ -46,6 +46,5 @@ DEFINE_LANG_NAME ("Java") { "-fno-use-divide-subroutine", "Use built-in instructions for division" }, { "-Wredundant-modifiers", "Warn if modifiers are specified when not necessary"}, - { "-Wunsupported-jdk11", "Warn if `final' local variables are specified"}, { "-Wextraneous-semicolon", "Warn if deprecated empty statements are found"}, { "-Wout-of-date", "Warn if .class files are out of date" }, diff --git a/gcc/java/lang.c b/gcc/java/lang.c index e312f501edd..312623b3f47 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -116,12 +116,6 @@ int flag_wall = 0; /* When non zero, check for redundant modifier uses. */ int flag_redundant = 0; -/* When non zero, warns about overridings that don't occur. */ -int flag_not_overriding = 0; - -/* When non zero, warns that final local are treated as non final. */ -int flag_static_local_jdk1_1 = 0; - /* When non zero, call a library routine to do integer divisions. */ int flag_use_divide_subroutine = 1; @@ -171,7 +165,6 @@ lang_f_options[] = static struct string_option lang_W_options[] = { - { "unsupported-jdk11", &flag_static_local_jdk1_1, 1 }, { "redundant-modifiers", &flag_redundant, 1 }, { "extraneous-semicolon", &flag_extraneous_semicolon, 1 }, { "out-of-date", &flag_newer, 1 } diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 7d758611177..c5165b7f933 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -6195,24 +6195,6 @@ java_check_regular_methods (class_decl) } aflags = get_access_flags_from_decl (found); - /* If the method has default, access in an other package, then - issue a warning that the current method doesn't override the - one that was found elsewhere. Do not issue this warning when - the match was found in java.lang.Object. */ - if (DECL_CONTEXT (found) != object_type_node - && ((aflags & ACC_VISIBILITY) == 0) - && !class_in_current_package (DECL_CONTEXT (found)) - && !DECL_CLINIT_P (found) - && flag_not_overriding) - { - parse_warning_context - (method_wfl, "Method `%s' in class `%s' does not override the corresponding method in class `%s', which is private to a different package", - lang_printable_name (found, 0), - IDENTIFIER_POINTER (DECL_NAME (class_decl)), - IDENTIFIER_POINTER (DECL_NAME - (TYPE_NAME (DECL_CONTEXT (found))))); - continue; - } /* Can't override final. Can't override static. */ if (METHOD_FINAL (found) || METHOD_STATIC (found)) -- 2.30.2