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
+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.
#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"