Commit 9dd22dd8 by Dave Korn Committed by Dave Korn

decl.c (java_init_decl_processing): Initialise integer_three_node.

	* decl.c (java_init_decl_processing): Initialise integer_three_node.
	* lang.c (put_decl_node): Handle nested function decls.

From-SVN: r167849
parent bce965d3
2010-12-15 Dave Korn <dave.korn.cygwin@gmail.com>
* decl.c (java_init_decl_processing): Initialise integer_three_node.
* lang.c (put_decl_node): Handle nested function decls.
2010-12-07 Joseph Myers <joseph@codesourcery.com>
* jcf-parse.c: Don't include assert.h.
......
......@@ -614,6 +614,7 @@ java_init_decl_processing (void)
integer_zero_node = build_int_cst (NULL_TREE, 0);
integer_one_node = build_int_cst (NULL_TREE, 1);
integer_two_node = build_int_cst (NULL_TREE, 2);
integer_three_node = build_int_cst (NULL_TREE, 3);
integer_four_node = build_int_cst (NULL_TREE, 4);
integer_minus_one_node = build_int_cst (NULL_TREE, -1);
......
......@@ -402,7 +402,9 @@ put_decl_node (tree node, int verbosity)
if verbosity is higher than 1. */
&& verbosity >= 1)
{
put_decl_node (TYPE_NAME (DECL_CONTEXT (node)),
put_decl_node (TREE_CODE (DECL_CONTEXT (node)) == FUNCTION_DECL
? DECL_CONTEXT (node)
: TYPE_NAME (DECL_CONTEXT (node)),
verbosity);
put_decl_string (".", 1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment