]> gcc.gnu.org Git - gcc.git/commitdiff
re PR java/21428 (bogus warning: unused parameter 'this')
authorAndrew Haley <aph@redhat.com>
Mon, 30 Jan 2006 15:40:14 +0000 (15:40 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Mon, 30 Jan 2006 15:40:14 +0000 (15:40 +0000)
2006-01-30  Andrew Haley  <aph@redhat.com>

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

From-SVN: r110400

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

index f1aa40e8af4df1da97d9f501bbc932a312c4de25..f986030da96f3929d2bfee33b1c16f30f7040a96 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 a467ff15a79fe63b12cce66a662cd20302743fd8..ab602dd1da488a9eed3fff3bf174f3752ce08993 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));
This page took 0.085313 seconds and 5 git commands to generate.