tree.h (struct record_layout_info_s): New field unpadded_align.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Sat, 2 Jun 2001 11:14:06 +0000 (11:14 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 2 Jun 2001 11:14:06 +0000 (07:14 -0400)
commite0cea8d93a0760335c5c5fa8269bb3633196c227
tree5fa74511443ee609e45e64f0848bb19aa235a285
parent3af78b060b5ec8bf79a2d1460ed12d7501c91c35
tree.h (struct record_layout_info_s): New field unpadded_align.

* tree.h (struct record_layout_info_s): New field unpadded_align.
(set_lang_adjust_rli): New declaration.
* stor-layout.c (layout_decl): If DECL is packed, but at alignment
it would have if not packed, do not downgrade DECL_ALIGN.
(lang_adjust_rli, set_lang_adjust_rli): New.
(start_record_layout): Initialize new field unpadded_align.
(debug_rli): Display it.
(place_union_field, place_field): Set it.
(layout_type, case RECORD_TYPE): Call via lang_adjust_rli if set.

From-SVN: r42796
gcc/ChangeLog
gcc/stor-layout.c
gcc/tree.h