diff options
author | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-07 22:26:27 +0000 |
---|---|---|
committer | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-07 22:26:27 +0000 |
commit | 301dfdef9f52bf834f0df7aa4088446819298e60 (patch) | |
tree | 13dc8cceea92edd99a26fcd540936cdfdac0a5f8 /gcc/java/jcf-parse.c | |
parent | f219fbbfe00cd568d3fb5cf1a474956adb7c62c0 (diff) | |
download | gcc-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.c | 7 |
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" |