diff options
author | Andrew Haley <aph@redhat.com> | 2006-01-30 15:40:14 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2006-01-30 15:40:14 +0000 |
commit | 6bb862cc973aa22427c41dd482821b7c11c331e2 (patch) | |
tree | e4c434f30f26465b32be2d5261471c5dde7b8292 | |
parent | 03bf3bc1050030f8ad8f92fc4b6d8a3f69a8f5b8 (diff) | |
download | gcc-6bb862cc973aa22427c41dd482821b7c11c331e2.zip gcc-6bb862cc973aa22427c41dd482821b7c11c331e2.tar.gz gcc-6bb862cc973aa22427c41dd482821b7c11c331e2.tar.bz2 |
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
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/parse.y | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index f1aa40e..f986030 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -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): diff --git a/gcc/java/parse.y b/gcc/java/parse.y index a467ff1..ab602dd 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -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)); |