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
This commit is contained in:
Tom Tromey 2003-02-26 20:13:25 +00:00 committed by Tom Tromey
parent dccd52137d
commit 49b973cbaf
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-02-26 Tom Tromey <tromey@redhat.com>
* jcf-write.c (generate_classfile): Check whether class is
deprecated before writing attribute count.
2003-02-25 Roger Sayle <roger@eyesopen.com>
* java/decl.c (java_init_decl_processing): Get soft_fmod_node from

View File

@ -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)
{