OSDN Git Service

2006-01-30 Andrew Haley <aph@redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Jan 2006 15:40:14 +0000 (15:40 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Jan 2006 15:40:14 +0000 (15:40 +0000)
        PR java/21428
        * parse.y: (source_start_java_method): Mark DECL_ARTIFICIAL("this").

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110400 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/parse.y

index f1aa40e..f986030 100644 (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):
index a467ff1..ab602dd 100644 (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));