diff options
| author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-01 22:05:46 +0000 |
|---|---|---|
| committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-01 22:05:46 +0000 |
| commit | bcbebec3b9a68922a7c7737b44a8e77d2e40eee6 (patch) | |
| tree | 0796c96d33fec47c40940d508fa9092c9d10a69a /gcc/java | |
| parent | fb31551a25058c1a66711b7848fce83ce715b8d4 (diff) | |
| download | ppe42-gcc-bcbebec3b9a68922a7c7737b44a8e77d2e40eee6.tar.gz ppe42-gcc-bcbebec3b9a68922a7c7737b44a8e77d2e40eee6.zip | |
* parse.y (java_pop_parser_context): The TREE_VALUE of a link in the
import_list contains the name, not the TREE_PURPOSE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41739 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java')
| -rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/java/parse.y | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 163f988edd6..3499e5a0a8a 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2001-05-01 Per Bothner <per@bothner.com> + + * parse.y (java_pop_parser_context): The TREE_VALUE of a link in the + import_list contains the name, not the TREE_PURPOSE. + 2001-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * jcf-io.c (read_zip_member): Cast to long in comparison with diff --git a/gcc/java/parse.y b/gcc/java/parse.y index de1bc667ec6..d7b86339b83 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -2671,12 +2671,12 @@ java_pop_parser_context (generate) /* Set the single import class file flag to 0 for the current list of imported things */ for (current = ctxp->import_list; current; current = TREE_CHAIN (current)) - IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P (TREE_PURPOSE (current)) = 0; + IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P (TREE_VALUE (current)) = 0; /* And restore those of the previous context */ if ((ctxp = next)) /* Assignment is really meant here */ for (current = ctxp->import_list; current; current = TREE_CHAIN (current)) - IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P (TREE_PURPOSE (current)) = 1; + IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P (TREE_VALUE (current)) = 1; /* If we pushed a context to parse a class intended to be generated, we keep it so we can remember the class. What we could actually |

