diff options
Diffstat (limited to 'gcc/java')
-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)); |