diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2001-02-07 22:26:27 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2001-02-07 14:26:27 -0800 |
commit | 1456345e538dde38ba151178ea6f0bd5cdcb53f6 (patch) | |
tree | 13dc8cceea92edd99a26fcd540936cdfdac0a5f8 /gcc | |
parent | 1ada4cd0940926190d1f0ee1264e19883547c1b4 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/jcf-parse.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 4568110..cc1b61b 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -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> * lex.c (java_new_lexer): Longer error message. 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" |