diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2006-10-01 19:38:08 -0400 |
---|---|---|
committer | Sandra Loosemore <sandra@gcc.gnu.org> | 2006-10-01 19:38:08 -0400 |
commit | a40776a29588b73758d83ced0bf31488023de9ad (patch) | |
tree | 0dcdbe9bee62c2eda67530a05289abfffb121b64 /gcc/tree.h | |
parent | 3397327cdcfe7b878320228cee615615260390a7 (diff) | |
download | gcc-a40776a29588b73758d83ced0bf31488023de9ad.zip gcc-a40776a29588b73758d83ced0bf31488023de9ad.tar.gz gcc-a40776a29588b73758d83ced0bf31488023de9ad.tar.bz2 |
tree.h (DECL_FIELD_OFFSET, [...]): Fix comments to reflect actual behavior and relationship between...
2006-10-01 Sandra Loosemore <sandra@codesourcery.com>
* gcc/tree.h (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): Fix
comments to reflect actual behavior and relationship between
DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET, and DECL_OFFSET_ALIGN.
* gcc/doc/c-tree.texi (Working with declarations): Fix documentation
of FIELD_DECL likewise.
From-SVN: r117352
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2648,11 +2648,14 @@ struct tree_decl_with_rtl GTY(()) }; /* In a FIELD_DECL, this is the field position, counting in bytes, of the - byte containing the bit closest to the beginning of the structure. */ + DECL_OFFSET_ALIGN-bit-sized word containing the bit closest to the beginning + of the structure. */ #define DECL_FIELD_OFFSET(NODE) (FIELD_DECL_CHECK (NODE)->field_decl.offset) /* In a FIELD_DECL, this is the offset, in bits, of the first bit of the - field from DECL_FIELD_OFFSET. */ + field from DECL_FIELD_OFFSET. This field may be nonzero even for fields + that are not bit fields (since DECL_OFFSET_ALIGN may be larger than the + natural alignment of the field's type). */ #define DECL_FIELD_BIT_OFFSET(NODE) (FIELD_DECL_CHECK (NODE)->field_decl.bit_offset) /* In a FIELD_DECL, this indicates whether the field was a bit-field and |