diff options
author | kan <kan@FreeBSD.org> | 2003-07-11 03:40:53 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-07-11 03:40:53 +0000 |
commit | b2a8872fbe1ec1c49094559ac7b78e6ea4ab7180 (patch) | |
tree | f6b0610f4a17fd26aa234354f050080f789861a4 /contrib/gcc/objc/objc-act.h | |
parent | 52e69d78eee5612ac195e0701a5cebe40d1ab0e1 (diff) | |
download | FreeBSD-src-b2a8872fbe1ec1c49094559ac7b78e6ea4ab7180.zip FreeBSD-src-b2a8872fbe1ec1c49094559ac7b78e6ea4ab7180.tar.gz |
Gcc 3.3.1-pre as of 2003-07-11.
Diffstat (limited to 'contrib/gcc/objc/objc-act.h')
-rw-r--r-- | contrib/gcc/objc/objc-act.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/contrib/gcc/objc/objc-act.h b/contrib/gcc/objc/objc-act.h index 72b8b3e..af10387 100644 --- a/contrib/gcc/objc/objc-act.h +++ b/contrib/gcc/objc/objc-act.h @@ -24,7 +24,7 @@ Boston, MA 02111-1307, USA. */ /*** Public Interface (procedures) ***/ const char *objc_init PARAMS ((const char *)); -int objc_decode_option PARAMS ((int, char **)); +const char *objc_printable_name PARAMS ((tree, int)); /* used by yyparse */ @@ -63,8 +63,6 @@ void objc_declare_alias PARAMS ((tree, tree)); void objc_declare_class PARAMS ((tree)); void objc_declare_protocols PARAMS ((tree)); -extern int objc_receiver_context; - /* the following routines are used to implement statically typed objects */ int objc_comptypes PARAMS ((tree, tree, int)); @@ -99,6 +97,7 @@ tree build_encode_expr PARAMS ((tree)); #define CLASS_STATIC_TEMPLATE(CLASS) TREE_VEC_ELT (TYPE_BINFO (CLASS), 2) #define CLASS_CATEGORY_LIST(CLASS) TREE_VEC_ELT (TYPE_BINFO (CLASS), 3) #define CLASS_PROTOCOL_LIST(CLASS) TREE_VEC_ELT (TYPE_BINFO (CLASS), 4) +#define CLASS_OWN_IVARS(CLASS) TREE_VEC_ELT (TYPE_BINFO (CLASS), 5) #define PROTOCOL_NAME(CLASS) ((CLASS)->type.name) #define PROTOCOL_LIST(CLASS) TREE_VEC_ELT (TYPE_BINFO (CLASS), 0) #define PROTOCOL_NST_METHODS(CLASS) ((CLASS)->type.minval) @@ -132,28 +131,26 @@ enum objc_tree_code { typedef struct hashed_entry *hash; typedef struct hashed_attribute *attr; -struct hashed_attribute +struct hashed_attribute GTY(()) { attr next; tree value; }; -struct hashed_entry +struct hashed_entry GTY(()) { attr list; hash next; tree key; }; -extern hash *nst_method_hash_list; -extern hash *cls_method_hash_list; +extern GTY ((length ("SIZEHASHTABLE"))) hash *nst_method_hash_list; +extern GTY ((length ("SIZEHASHTABLE"))) hash *cls_method_hash_list; -#define HASH_ALLOC_LIST_SIZE 170 -#define ATTR_ALLOC_LIST_SIZE 170 #define SIZEHASHTABLE 257 /* Objective-C/Objective-C++ @implementation list. */ -struct imp_entry +struct imp_entry GTY(()) { struct imp_entry *next; tree imp_context; @@ -162,7 +159,7 @@ struct imp_entry tree meta_decl; /* _OBJC_METACLASS_<my_name>; */ }; -extern struct imp_entry *imp_list; +extern GTY(()) struct imp_entry *imp_list; extern int imp_count; /* `@implementation' */ extern int cat_count; /* `@category' */ @@ -247,7 +244,7 @@ enum objc_tree_index OCTI_MAX }; -extern tree objc_global_trees[OCTI_MAX]; +extern GTY(()) tree objc_global_trees[OCTI_MAX]; /* List of classes with list of their static instances. */ #define objc_static_instances objc_global_trees[OCTI_STATIC_NST] |