From 3096a0e3a42093302ab3bff3d14e543794b3676e Mon Sep 17 00:00:00 2001 From: bothner Date: Tue, 1 May 2001 22:13:31 +0000 Subject: [PATCH] * parse.h (REGISTER_IMPORT): Use tree_cons instead of chainon. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41741 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/java/ChangeLog | 4 ++++ gcc/java/parse.h | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 3499e5a..6234de9 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,5 +1,9 @@ 2001-05-01 Per Bothner + * parse.h (REGISTER_IMPORT): Use tree_cons instead of chainon. + +2001-05-01 Per Bothner + * parse.y (java_pop_parser_context): The TREE_VALUE of a link in the import_list contains the name, not the TREE_PURPOSE. diff --git a/gcc/java/parse.h b/gcc/java/parse.h index d17dbc0..c915700 100644 --- a/gcc/java/parse.h +++ b/gcc/java/parse.h @@ -704,8 +704,7 @@ typedef struct _jdeplist { #define REGISTER_IMPORT(WHOLE, NAME) \ { \ IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P ((NAME)) = 1; \ - ctxp->import_list = chainon (ctxp->import_list, \ - build_tree_list ((WHOLE), (NAME))); \ + ctxp->import_list = tree_cons ((WHOLE), (NAME), ctxp->import_list); \ } /* Macro to access the osb (opening square bracket) count */ -- 2.7.4