summaryrefslogtreecommitdiff
path: root/gcc/java/jcf-parse.c
diff options
context:
space:
mode:
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-07 22:26:27 +0000
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-07 22:26:27 +0000
commit301dfdef9f52bf834f0df7aa4088446819298e60 (patch)
tree13dc8cceea92edd99a26fcd540936cdfdac0a5f8 /gcc/java/jcf-parse.c
parentf219fbbfe00cd568d3fb5cf1a474956adb7c62c0 (diff)
downloadgcc-301dfdef9f52bf834f0df7aa4088446819298e60.tar.gz
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) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39528 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r--gcc/java/jcf-parse.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index 7cc1de62c11..e8eacc5dee7 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -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"