diff options
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 9f0064b..fcfabf3 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -1959,10 +1959,10 @@ finish_bitfield_representative (tree repr, tree field) } /* Compute and set FIELD_DECLs for the underlying objects we should - use for bitfield access for the structure laid out with RLI. */ + use for bitfield access for the structure T. */ -static void -finish_bitfield_layout (record_layout_info rli) +void +finish_bitfield_layout (tree t) { tree field, prev; tree repr = NULL_TREE; @@ -1971,10 +1971,10 @@ finish_bitfield_layout (record_layout_info rli) we could use the underlying type as hint for the representative if the bitfield would fit and the representative would not exceed the union in size. */ - if (TREE_CODE (rli->t) != RECORD_TYPE) + if (TREE_CODE (t) != RECORD_TYPE) return; - for (prev = NULL_TREE, field = TYPE_FIELDS (rli->t); + for (prev = NULL_TREE, field = TYPE_FIELDS (t); field; field = DECL_CHAIN (field)) { if (TREE_CODE (field) != FIELD_DECL) @@ -2061,7 +2061,7 @@ finish_record_layout (record_layout_info rli, int free_p) finalize_type_size (rli->t); /* Compute bitfield representatives. */ - finish_bitfield_layout (rli); + finish_bitfield_layout (rli->t); /* Propagate TYPE_PACKED to variants. With C++ templates, handle_packed_attribute is too early to do this. */ |