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

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
This commit is contained in:
Alexandre Petit-Bianco 2001-02-07 22:26:27 +00:00 committed by Alexandre Petit-Bianco
parent 1ada4cd094
commit 1456345e53
2 changed files with 9 additions and 3 deletions

View 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> 2001-02-06 Tom Tromey <tromey@redhat.com>
* lex.c (java_new_lexer): Longer error message. * lex.c (java_new_lexer): Longer error message.

View File

@ -224,11 +224,12 @@ set_source_filename (jcf, index)
#define HANDLE_SYNTHETIC_ATTRIBUTE() \ #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) \ if (current_method) \
DECL_ARTIFICIAL (current_method) = 1; \ DECL_ARTIFICIAL (current_method) = 1; \
else \
DECL_ARTIFICIAL (current_field) = 1; \
} }
#include "jcf-reader.c" #include "jcf-reader.c"