re PR libobjc/25347 (objc_alignof_type gets the wrong alignment for unions (objc_size...
authorAndrew Pinski <pinskia@physics.uc.edu>
Sun, 11 Dec 2005 06:59:12 +0000 (06:59 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 11 Dec 2005 06:59:12 +0000 (22:59 -0800)
commit4540a3ade18d12fa93b67426b6d722d84902d906
tree9f61241fd1b0a770954dad72e767c7926af8ce56
parent153b4898d243846931a06682cd06ce16b826d755
re PR libobjc/25347 (objc_alignof_type gets the wrong alignment for unions (objc_sizeof_type is wrong also too))

2005-12-11  Andrew Pinski  <pinskia@physics.uc.edu>

        PR libobjc/25347
        * encoding.c (objc_sizeof_type): Don't handle _C_UNION_B special
        but use the struct layout functions.
        (objc_alignof_type): Likewise.
        (objc_layout_structure): Handle _C_UNION_B also.
        (objc_layout_structure_next_member): Likewise.
        (objc_layout_finish_structure): Likewise.

2005-12-11  Andrew Pinski  <pinskia@physics.uc.edu>

        PR libobjc/25347
        * objc.dg/encode-8.m: New test.

From-SVN: r108379
gcc/testsuite/ChangeLog
gcc/testsuite/objc.dg/encode-8.m [new file with mode: 0644]
libobjc/ChangeLog
libobjc/encoding.c