aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorDouglas B Rupp <rupp@gnat.com>2002-09-18 18:51:14 +0000
committerDouglas Rupp <rupp@gcc.gnu.org>2002-09-18 18:51:14 +0000
commite4850f36e545325e3309870d13dfe4582e7cb9d4 (patch)
treedb1286b6218421cfbaf55c157f77ee8912f2bf17 /gcc/tree.h
parent62f1a74c0f77dbe42561774579317fe56fda7401 (diff)
downloadgcc-e4850f36e545325e3309870d13dfe4582e7cb9d4.zip
gcc-e4850f36e545325e3309870d13dfe4582e7cb9d4.tar.gz
gcc-e4850f36e545325e3309870d13dfe4582e7cb9d4.tar.bz2
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 <donnte@microsoft.com> From-SVN: r57281
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h2
1 files changed, 2 insertions, 0 deletions
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;