From e4850f36e545325e3309870d13dfe4582e7cb9d4 Mon Sep 17 00:00:00 2001 From: Douglas B Rupp Date: Wed, 18 Sep 2002 18:51:14 +0000 Subject: stor-layout.c (place_field): Handle alignment of whole structures when MSVC compatible bitfields are involved. * stor-layout.c (place_field): Handle alignment of whole structures when MSVC compatible bitfields are involved. Change method of computing location of MS bitfields to be compatible with #pragma pack(n). * tree.h (record_layout_info): Add new field remaining_in_alignment. * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update. (pragma pack): Add paragraph on MSVC bitfield packing. Co-Authored-By: Donn Terry From-SVN: r57281 --- gcc/tree.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/tree.h') diff --git a/gcc/tree.h b/gcc/tree.h index f95f363..310d643 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -2403,6 +2403,8 @@ typedef struct record_layout_info_s /* The static variables (i.e., class variables, as opposed to instance variables) encountered in T. */ tree pending_statics; + /* Bits remaining in the current alignment group */ + int remaining_in_alignment; int packed_maybe_necessary; } *record_layout_info; -- cgit v1.1