OSDN Git Service

2000-08-08 Alexandre Petit-Bianco <apbianco@cygnus.com>
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Aug 2000 01:44:00 +0000 (01:44 +0000)
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Aug 2000 01:44:00 +0000 (01:44 +0000)
commit1679257174031625aa5b868054e16af1a6241253
treecd7ce89a24dfddf5ffd3d4ad167f1f4b902ed92c
parent6f52caf7927286fd8f2c4a4dfd83e06a3ee2b8fe
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
gcc/java/ChangeLog
gcc/java/java-tree.h
gcc/java/lang-options.h
gcc/java/lang.c
gcc/java/parse.y