jcf-parse.c (HANDLE_SYNTHETIC_ATTRIBUTE): Don't handle field DECLs.
authorAlexandre Petit-Bianco <apbianco@cygnus.com>
Wed, 7 Feb 2001 22:26:27 +0000 (22:26 +0000)
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>
Wed, 7 Feb 2001 22:26:27 +0000 (14:26 -0800)
2001-02-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* jcf-parse.c (HANDLE_SYNTHETIC_ATTRIBUTE): Don't handle field
DECLs.

(http://gcc.gnu.org/ml/gcc-patches/2001-02/msg00424.html)

From-SVN: r39528

gcc/java/ChangeLog
gcc/java/jcf-parse.c

index 45681106370bce6cb41bd427a33a81d0719132ac..cc1b61b751c655334e3e5cef188fb8638de7bb09 100644 (file)
@@ -1,3 +1,8 @@
+2001-02-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * jcf-parse.c (HANDLE_SYNTHETIC_ATTRIBUTE): Don't handle field
+       DECLs.
+
 2001-02-06  Tom Tromey  <tromey@redhat.com>
 
        * lex.c (java_new_lexer): Longer error message.
index 7cc1de62c11211c2223691dc08a78c402c44fd51..e8eacc5dee7e2cb4453091d8070142f84cee0aec 100644 (file)
@@ -224,11 +224,12 @@ set_source_filename (jcf, index)
 
 #define HANDLE_SYNTHETIC_ATTRIBUTE()                                   \
 {                                                                      \
-  /* Irrelevant decls should have been nullified by the END macros. */ \
+  /* Irrelevant decls should have been nullified by the END macros.    \
+     We only handle the `Synthetic' attribute on method DECLs.         \
+     DECL_ARTIFICIAL on fields is used for something else (See         \
+     PUSH_FIELD in java-tree.h) */                                     \
   if (current_method)                                                  \
     DECL_ARTIFICIAL (current_method) = 1;                              \
-  else                                                                 \
-    DECL_ARTIFICIAL (current_field) = 1;                               \
 }
 
 #include "jcf-reader.c"