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.
(This patch fixes the net Java PR #46:
http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00092.html)
From-SVN: r29550
* 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);
}