aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-parse.c
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>2001-02-07 22:26:27 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>2001-02-07 14:26:27 -0800
commit1456345e538dde38ba151178ea6f0bd5cdcb53f6 (patch)
tree13dc8cceea92edd99a26fcd540936cdfdac0a5f8 /gcc/java/jcf-parse.c
parent1ada4cd0940926190d1f0ee1264e19883547c1b4 (diff)
downloadgcc-1456345e538dde38ba151178ea6f0bd5cdcb53f6.zip
gcc-1456345e538dde38ba151178ea6f0bd5cdcb53f6.tar.gz
gcc-1456345e538dde38ba151178ea6f0bd5cdcb53f6.tar.bz2
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
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 7cc1de6..e8eacc5 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"