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
This commit is contained in:
Andrew Haley 2006-01-30 15:40:14 +00:00 committed by Andrew Haley
parent 03bf3bc105
commit 6bb862cc97
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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):

View File

@ -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));