diff options
author | Ziemowit Laski <zlaski@apple.com> | 2002-08-20 01:27:39 +0000 |
---|---|---|
committer | Ziemowit Laski <zlaski@gcc.gnu.org> | 2002-08-20 01:27:39 +0000 |
commit | 1bd5981b33ab83a5f1745bda7bd7d97d23e84f4b (patch) | |
tree | 5bfe74464a81284da9557cd95333dffa30318d52 /gcc/objc/objc-act.h | |
parent | 2bf087c09eb697b798574e77845466d248381bc6 (diff) | |
download | gcc-1bd5981b33ab83a5f1745bda7bd7d97d23e84f4b.zip gcc-1bd5981b33ab83a5f1745bda7bd7d97d23e84f4b.tar.gz gcc-1bd5981b33ab83a5f1745bda7bd7d97d23e84f4b.tar.bz2 |
objc-act.c (build_ivar_chain): Remove.
[gcc]
2002-08-19 Ziemowit Laski <zlaski@apple.com>
* objc/objc-act.c (build_ivar_chain): Remove.
(objc_copy_list): Likewise.
(get_class_ivars): Inline call to removed build_ivar_chain
function. Save off a clean copy of ivars in the CLASS_OWN_IVARS
slot; use that slot (rather than CLASS_IVARS) when accessing
ivars for base classes. Call copy_list and chainon instead of
objc_copy_list.
(build_private_template): Call get_class_ivars instead of
build_ivar_chain.
(start_class): Allocate room for the CLASS_OWN_IVARS slot.
(continue_class): Call get_class_ivars instead of
build_ivar_chain.
(encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
of DECL_BIT_FIELD (which may have been cleared).
* objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
[gcc/testsuite]
2002-08-19 Ziemowit Laski <zlaski@apple.com>
* objc.dg/bitfield-1.m: New test.
* objc.dg/bitfield-2.m: New test.
From-SVN: r56451
Diffstat (limited to 'gcc/objc/objc-act.h')
-rw-r--r-- | gcc/objc/objc-act.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/objc/objc-act.h b/gcc/objc/objc-act.h index aebccf8..af10387 100644 --- a/gcc/objc/objc-act.h +++ b/gcc/objc/objc-act.h @@ -97,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) |