aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lang-options.h
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>2000-08-24 01:44:00 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>2000-08-23 18:44:00 -0700
commit5f1c312aa06c452609c7fab1cf390dde6dfb8722 (patch)
treecd7ce89a24dfddf5ffd3d4ad167f1f4b902ed92c /gcc/java/lang-options.h
parente15a68e7bc302166f1f90c83fe0ef64fe0d45820 (diff)
downloadgcc-5f1c312aa06c452609c7fab1cf390dde6dfb8722.zip
gcc-5f1c312aa06c452609c7fab1cf390dde6dfb8722.tar.gz
gcc-5f1c312aa06c452609c7fab1cf390dde6dfb8722.tar.bz2
java-tree.h (flag_extraneous_semicolon): New extern.
2000-08-08 Alexandre Petit-Bianco <apbianco@cygnus.com> * java-tree.h (flag_extraneous_semicolon): New extern. * lang-options.h: (-Wextraneous-semicolon): New option. * lang.c (flag_redundant): Fixed typo in leading comment. (flag_extraneous_semicolon): New global. (lang_decode_option): Set `flag_extraneous_semicolon' when -Wall. Decode `-Wextraneous-semicolon'. * parse.y (type_declaration:): Removed `SC_TK' hack, added `empty_statement' rule. (class_body_declaration): Likewise. (method_body:): Accept `;' as a method body. (static_initializer:): Removed `SC_TK' hack. (constructor_block_end:): Likewise. (empty_statement:): Report deprecated empty declaration. Fixes gcj/295 (Fix to gcj/295: http://sources.redhat.com/ml/java-prs/2000-q3/msg00095.html) From-SVN: r35929
Diffstat (limited to 'gcc/java/lang-options.h')
-rw-r--r--gcc/java/lang-options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/java/lang-options.h b/gcc/java/lang-options.h
index 76c6fe2..630e6d8 100644
--- a/gcc/java/lang-options.h
+++ b/gcc/java/lang-options.h
@@ -51,3 +51,4 @@ DEFINE_LANG_NAME ("Java")
{ "-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"},