summaryrefslogtreecommitdiff
path: root/gcc/java/lang-options.h
diff options
context:
space:
mode:
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-24 01:44:00 +0000
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-24 01:44:00 +0000
commit1679257174031625aa5b868054e16af1a6241253 (patch)
treecd7ce89a24dfddf5ffd3d4ad167f1f4b902ed92c /gcc/java/lang-options.h
parent6f52caf7927286fd8f2c4a4dfd83e06a3ee2b8fe (diff)
downloadgcc-1679257174031625aa5b868054e16af1a6241253.tar.gz
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) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35929 138bc75d-0d04-0410-961f-82ee72b054a4
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 76c6fe2fbec..630e6d8a1bd 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"},