2007-02-01 Andrew Haley <aph@redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Feb 2007 14:34:11 +0000 (14:34 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Feb 2007 14:34:11 +0000 (14:34 +0000)
        PR java/30641
        * jcf-parse.c (jcf_parse): Clear the field_offsets bitmap.

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

gcc/java/ChangeLog
gcc/java/jcf-parse.c

index bd11ee3..e5fc36a 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-01  Andrew Haley  <aph@redhat.com>
+
+       PR java/30641
+       * jcf-parse.c (jcf_parse): Clear the field_offsets bitmap.
+
 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
 
        * class.c, jcf-parse.c: Fix comment typos.
index 0e2ba8c..59b9e89 100644 (file)
@@ -1449,6 +1449,8 @@ jcf_parse (JCF* jcf)
 {
   int i, code;
 
+  bitmap_clear (field_offsets);
+
   if (jcf_parse_preamble (jcf) != 0)
     fatal_error ("not a valid Java .class file");
   code = jcf_parse_constant_pool (jcf);