From 35f109982492cc19dbcd44318c866fa693184e73 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 12 Apr 2000 17:55:54 +0200 Subject: encoding.c (objc_layout_structure_next_member): Do the whole procedure even for the first member, so that we get correct alignment. * encoding.c (objc_layout_structure_next_member): Do the whole procedure even for the first member, so that we get correct alignment. From-SVN: r33110 --- libobjc/encoding.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'libobjc/encoding.c') diff --git a/libobjc/encoding.c b/libobjc/encoding.c index dde009c..7841196 100644 --- a/libobjc/encoding.c +++ b/libobjc/encoding.c @@ -743,15 +743,6 @@ objc_layout_structure_next_member (struct objc_struct_layout *layout) /* The current type without the type qualifiers */ const char *type; -#if 1 - if (layout->prev_type == NULL) - { - layout->prev_type = layout->type; - layout->type = objc_skip_typespec (layout->prev_type); - return YES; - } -#endif - /* Add the size of the previous field to the size of the record. */ if (layout->prev_type) { @@ -760,7 +751,6 @@ objc_layout_structure_next_member (struct objc_struct_layout *layout) if (*type != _C_BFLD) layout->record_size += objc_sizeof_type (type) * BITS_PER_UNIT; else { - desired_align = 1; /* Get the bitfield's type */ for (bfld_type = type + 1; isdigit(*bfld_type); -- cgit v1.1