aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc/objc-parse.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2000-04-12 09:22:32 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2000-04-12 09:22:32 +0200
commitbcdb1106255a456b77bcd8ba56e3f1a9b278768a (patch)
tree684ed6f94cfd06b71d423351cb97d7090ec8117c /gcc/objc/objc-parse.c
parente8019e47f6e814a44026e11fc718688a81217a3f (diff)
downloadgcc-bcdb1106255a456b77bcd8ba56e3f1a9b278768a.zip
gcc-bcdb1106255a456b77bcd8ba56e3f1a9b278768a.tar.gz
gcc-bcdb1106255a456b77bcd8ba56e3f1a9b278768a.tar.bz2
objc-act.c: Include ggc.h.
* objc/objc-act.c: Include ggc.h. (objc_tree_index, objc_global_trees): Convert most of the static tree variables into a static array with previous names as defines. (objc_ellipsis_node): New variable. (lang_init): Call objc_act_parse_init and c_parse_init. Create objc_ellipsis_node. (build_selector_translation_table): Use objc_ellipsis_node instead of (tree)1. (hack_method_prototype): Likewise. (get_arg_type_list): Likewise. (start_method_def): Likewise. (continue_method_def): Likewise. (gen_method_decl): Likewise. (ggc_mark_imp_list): New function. (ggc_mark_hash_table): New function. (objc_act_parse_init): New function. * objc/objc-act.h (objc_ellipsis_node): Add extern variable. * c-parse.in (c_parse_init): For objc add roots of objc specific local tree variables. * objc/objc-parse.y: Rebuilt. * objc/objc-parse.c: Rebuilt. (opt_parm_list): Use objc_ellipsis_node instead of (tree)1. * Object.m (strlen): Provide prototype on all 64bit platforms, not only alpha. * sarray.c (memcpy): Likewise. * encoding.c (objc_layout_finish_structure): Don't use ROUND_TYPE_ALIGN on sparc. From-SVN: r33092
Diffstat (limited to 'gcc/objc/objc-parse.c')
-rw-r--r--gcc/objc/objc-parse.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/objc/objc-parse.c b/gcc/objc/objc-parse.c
index d83adf2..445ba74 100644
--- a/gcc/objc/objc-parse.c
+++ b/gcc/objc/objc-parse.c
@@ -160,6 +160,11 @@ c_parse_init ()
ggc_add_tree_root (&declspec_stack, 1);
ggc_add_tree_root (&current_declspecs, 1);
ggc_add_tree_root (&prefix_attributes, 1);
+ ggc_add_tree_root (&objc_interface_context, 1);
+ ggc_add_tree_root (&objc_implementation_context, 1);
+ ggc_add_tree_root (&objc_method_context, 1);
+ ggc_add_tree_root (&objc_ivar_chain, 1);
+ ggc_add_tree_root (&objc_ivar_context, 1);
}
#include <stdio.h>
@@ -4881,7 +4886,7 @@ case 515:
#line 2809 "objc-parse.y"
{
/* oh what a kludge! */
- yyval.ttype = (tree)1;
+ yyval.ttype = objc_ellipsis_node;
;
break;}
case 516: