summaryrefslogtreecommitdiffstats
path: root/gcc/java/jcf-write.c
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-26 20:13:25 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-26 20:13:25 +0000
commit1f0ca6c6102e44ce21dc57309ccf83732f9fa779 (patch)
tree089cc73d830410c62a0acf839a5f427c7b142838 /gcc/java/jcf-write.c
parent81226272cd6ef5b37d7e0a5e6037d05814b4af96 (diff)
downloadppe42-gcc-1f0ca6c6102e44ce21dc57309ccf83732f9fa779.tar.gz
ppe42-gcc-1f0ca6c6102e44ce21dc57309ccf83732f9fa779.zip
* jcf-write.c (generate_classfile): Check whether class is
deprecated before writing attribute count. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63482 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-write.c')
-rw-r--r--gcc/java/jcf-write.c4
1 files changed, 2 insertions, 2 deletions
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)
{
OpenPOWER on IntegriCloud