summaryrefslogtreecommitdiff
path: root/libobjc/encoding.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-12 15:55:54 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-12 15:55:54 +0000
commitc2e46ff4c9801b4f1a5dd7528df7483d799eb570 (patch)
treeea36a6d5ed181a2f37f80c7c6b80558f950a0a55 /libobjc/encoding.c
parent1620409611f56187ed5d93afc156d45390432c63 (diff)
downloadgcc-c2e46ff4c9801b4f1a5dd7528df7483d799eb570.tar.gz
* encoding.c (objc_layout_structure_next_member): Do the whole
procedure even for the first member, so that we get correct alignment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33110 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/encoding.c')
-rw-r--r--libobjc/encoding.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/libobjc/encoding.c b/libobjc/encoding.c
index dde009cea38..7841196cd5e 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);