objc-act.c (build_ivar_chain): Remove.
commit1bd5981b33ab83a5f1745bda7bd7d97d23e84f4b
authorZiemowit Laski <zlaski@apple.com>
Tue, 20 Aug 2002 01:27:39 +0000 (20 01:27 +0000)
committerZiemowit Laski <zlaski@gcc.gnu.org>
Tue, 20 Aug 2002 01:27:39 +0000 (20 01:27 +0000)
tree5bfe74464a81284da9557cd95333dffa30318d52
parent2bf087c09eb697b798574e77845466d248381bc6
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
gcc/ChangeLog
gcc/objc/objc-act.c
gcc/objc/objc-act.h
gcc/testsuite/ChangeLog
gcc/testsuite/objc.dg/bitfield-1.m [new file with mode: 0644]
gcc/testsuite/objc.dg/bitfield-2.m [new file with mode: 0644]