Tue Dec 1 13:53:24 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Dec 1998 14:28:02 +0000 (14:28 +0000)
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Dec 1998 14:28:02 +0000 (14:28 +0000)
commit4bd643d76ae23822e404bad9f51b9855837a1973
tree009299b3815a338dbba35958d0320cfdada1c86f
parent0d240b273c856909b45eb04953824583f8acc8a1
Tue Dec  1 13:53:24 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
* class.c (layout_class_method): Don't report error on non-static
  overriding static if the method is private.
* java-tree.h (finish_class): Prototype added.
* lex.c (java_get_line_col): Handle col argument -2 value.
* parse.h: All static method declarations moved to parse.y.
* parse.y: Now contains all static method declarations previously
  found in parse.h.
(find_expr_with_wfl, missing_return_error,
  unreachable_stmt_error): New functions.
(java_get_real_method_name): Identify constructors bearing class
  names in source code compiled classes only.
(java_complete_expand_methods): Call missing_return_error.
(invocation_mode): Private methods invoked as static methods.
(java_complete_tree): Call unreachable_stmt_error.
This patch corrects the way unreachable statement and missing return
statement errors are reported. It also fixes random bugs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24036 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/java/ChangeLog
gcc/java/class.c
gcc/java/java-tree.h
gcc/java/lex.c
gcc/java/parse.c
gcc/java/parse.h
gcc/java/parse.y