aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2003-02-26 20:13:25 +0000
committerTom Tromey <tromey@gcc.gnu.org>2003-02-26 20:13:25 +0000
commit49b973cbaf7ed0c6fb2ac4a639d000e7c7287f97 (patch)
tree089cc73d830410c62a0acf839a5f427c7b142838 /gcc/java
parentdccd52137d935ee21fb2a331e76c563c3f72f055 (diff)
downloadgcc-49b973cbaf7ed0c6fb2ac4a639d000e7c7287f97.zip
gcc-49b973cbaf7ed0c6fb2ac4a639d000e7c7287f97.tar.gz
gcc-49b973cbaf7ed0c6fb2ac4a639d000e7c7287f97.tar.bz2
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
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/jcf-write.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 35460f5..fd4a37b 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -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
diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c
index 583cff9..a18f062 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)
{