aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2001-12-09 01:30:00 +0000
committerTom Tromey <tromey@gcc.gnu.org>2001-12-09 01:30:00 +0000
commit897c9e66debb64ee4785f78984937a811d16c4c1 (patch)
tree3c6894bd479a2c80285d401638d8117d3a068e16 /gcc
parent4440ffc4a58889d19c880deaad57664edbbe4732 (diff)
downloadgcc-897c9e66debb64ee4785f78984937a811d16c4c1.zip
gcc-897c9e66debb64ee4785f78984937a811d16c4c1.tar.gz
gcc-897c9e66debb64ee4785f78984937a811d16c4c1.tar.bz2
gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything else.
* gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything else. From-SVN: r47802
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog3
-rw-r--r--gcc/java/gjavah.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index ddba50c..43a6560 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,5 +1,8 @@
2001-12-08 Tom Tromey <tromey@redhat.com>
+ * gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything
+ else.
+
* gjavah.c (print_namelet): Clear subnamelets.
(HANDLE_METHOD): Set `method_printed' earlier.
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c
index 00f29f6..779e3ed 100644
--- a/gcc/java/gjavah.c
+++ b/gcc/java/gjavah.c
@@ -194,6 +194,7 @@ static int method_signature = 0;
{ \
method_synthetic = 0; \
method_printed = 0; \
+ decompiled = 0; \
method_signature = SIGNATURE; \
if (ATTRIBUTE_COUNT) \
method_synthetic = peek_attribute (jcf, ATTRIBUTE_COUNT, \
@@ -209,7 +210,6 @@ static int method_signature = 0;
} \
if (method_pass && !method_synthetic) \
{ \
- decompiled = 0; \
if (out) \
print_method_info (out, jcf, NAME, SIGNATURE, \
ACCESS_FLAGS); \