diff options
Diffstat (limited to 'gcc/java/parse.h')
-rw-r--r-- | gcc/java/parse.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/java/parse.h b/gcc/java/parse.h index 24b0b9b..45573fb 100644 --- a/gcc/java/parse.h +++ b/gcc/java/parse.h @@ -687,12 +687,11 @@ typedef struct _jdeplist { } /* Register an import */ -#define REGISTER_IMPORT(WHOLE, NAME) \ -{ \ - IS_A_SINGLE_IMPORT_CLASSFILE_NAME_P ((NAME)) = 1; \ - node = build_tree_list ((WHOLE), (NAME)); \ - TREE_CHAIN (node) = ctxp->import_list; \ - ctxp->import_list = node; \ +#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))); \ } /* Macro to access the osb (opening square bracket) count */ |