Commit 6bb862cc by Andrew Haley Committed by Andrew Haley

re PR java/21428 (bogus warning: unused parameter 'this')

2006-01-30  Andrew Haley  <aph@redhat.com>

        PR java/21428
        * parse.y: (source_start_java_method): Mark DECL_ARTIFICIAL("this").

From-SVN: r110400
parent 03bf3bc1
2006-01-30 Andrew Haley <aph@redhat.com>
PR java/21428
* parse.y: (source_start_java_method): Mark DECL_ARTIFICIAL("this").
2006-01-21 Joseph S. Myers <joseph@codesourcery.com>
* jv-scan.c (version), jcf-dump.c (version), gjavah.c (version):
......
......@@ -7571,6 +7571,9 @@ source_start_java_method (tree fndecl)
DECL_FINAL (parm_decl) = 1;
}
if (name == this_identifier_node)
DECL_ARTIFICIAL (parm_decl) = 1;
BLOCK_CHAIN_DECL (parm_decl);
}
tem = BLOCK_EXPR_DECLS (DECL_FUNCTION_BODY (current_function_decl));
......
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