* parse.y (java_method_add_stmt): Test against GET_CURRENT_BLOCK
instead of fndecl.
(This patch fixes the net Java PR #46:
http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00092.html)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29550
138bc75d-0d04-0410-961f-
82ee72b054a4
* lang.c (lang_decode_option): Extend comment.
+Thu Sep 16 15:42:39 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
+
+ * parse.y (java_method_add_stmt): Test against GET_CURRENT_BLOCK
+ instead of fndecl.
+
1999-09-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gjavah.c (get_field_name, print_method_info, print_include,
java_method_add_stmt (fndecl, expr)
tree fndecl, expr;
{
- if (!fndecl)
- return NULL;
+ if (!GET_CURRENT_BLOCK (fndecl))
+ return NULL_TREE;
return add_stmt_to_block (GET_CURRENT_BLOCK (fndecl), NULL_TREE, expr);
}
java_method_add_stmt (fndecl, expr)
tree fndecl, expr;
{
- if (!fndecl)
- return NULL;
+ if (!GET_CURRENT_BLOCK (fndecl))
+ return NULL_TREE;
return add_stmt_to_block (GET_CURRENT_BLOCK (fndecl), NULL_TREE, expr);
}