From: Tom Tromey Date: Wed, 26 Feb 2003 20:13:25 +0000 (+0000) Subject: jcf-write.c (generate_classfile): Check whether class is deprecated before writing... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49b973cbaf7ed0c6fb2ac4a639d000e7c7287f97;p=gcc.git jcf-write.c (generate_classfile): Check whether class is deprecated before writing attribute count. * jcf-write.c (generate_classfile): Check whether class is deprecated before writing attribute count. From-SVN: r63482 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 35460f5c7fc..fd4a37be83a 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2003-02-26 Tom Tromey + + * jcf-write.c (generate_classfile): Check whether class is + deprecated before writing attribute count. + 2003-02-25 Roger Sayle * java/decl.c (java_init_decl_processing): Get soft_fmod_node from diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c index 583cff929c6..a18f062e32f 100644 --- a/gcc/java/jcf-write.c +++ b/gcc/java/jcf-write.c @@ -3103,11 +3103,11 @@ generate_classfile (tree clas, struct jcf_partial *state) i++; if (clas == object_type_node) i++; - PUT2 (i); /* attributes_count */ - if (CLASS_DEPRECATED (TYPE_NAME (clas))) i++; + PUT2 (i); /* attributes_count */ + /* generate the SourceFile attribute. */ if (SourceFile_node == NULL_TREE) {