gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything else.
authorTom Tromey <tromey@redhat.com>
Sun, 9 Dec 2001 01:30:00 +0000 (01:30 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sun, 9 Dec 2001 01:30:00 +0000 (01:30 +0000)
* gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything
else.

From-SVN: r47802

gcc/java/ChangeLog
gcc/java/gjavah.c

index ddba50c79552c5646567698a56fa7ed80232b19f..43a6560aec0b2076917d6a69defb9521cadbe297 100644 (file)
@@ -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.
 
index 00f29f6ad6a1643bd4a7ef91b92d138b9c2bc5fd..779e3ed43c4255f223634328b158d9249ab94597 100644 (file)
@@ -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);                             \