diff options
author | Paul Brook <paul@codesourcery.com> | 2004-05-14 12:53:11 +0000 |
---|---|---|
committer | Paul Brook <pbrook@gcc.gnu.org> | 2004-05-14 12:53:11 +0000 |
commit | 13c1cd82670b0be75bf99ba5bd23a7c34460fe65 (patch) | |
tree | a01af50a8b0a254e0fc7b796f434623f5557811b /gcc/doc/tm.texi | |
parent | ce8fc97bdf64cb3abbe042de3d9030b0c22b74dc (diff) | |
download | gcc-13c1cd82670b0be75bf99ba5bd23a7c34460fe65.zip gcc-13c1cd82670b0be75bf99ba5bd23a7c34460fe65.tar.gz gcc-13c1cd82670b0be75bf99ba5bd23a7c34460fe65.tar.bz2 |
stor-layout.c (update_alignment_for_field): Use targetm.align_anon_bitfield.
* stor-layout.c (update_alignment_for_field): Use
targetm.align_anon_bitfield.
* target-def.h (TARGET_ALIGN_ANON_BITFIELD): Define.
(TARGET_INITIALIZER): Use it.
* target.h (struct gcc_target): Add align_anon_bitfield.
* config/arm/arm.c (arm_align_anon_bitfield): New function.
(TARGET_ALIGN_ANON_BITFIELD): Define.
* doc/tm.texi: Document TARGET_ALIGN_ANON_BITFIELD.
From-SVN: r81838
Diffstat (limited to 'gcc/doc/tm.texi')
-rw-r--r-- | gcc/doc/tm.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 339dc7a..a0f855d 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -1301,6 +1301,13 @@ Like @code{PCC_BITFIELD_TYPE_MATTERS} except that its effect is limited to aligning a bit-field within the structure. @end defmac +@deftypefn {Target Hook} bool TARGET_ALIGN_ANON_BITFIELDS (void) +When @code{PCC_BITFIELD_TYPE_MATTERS} is true this hook will determine +whether unnamed bitfields affect the alignment of the containing +structure. The hook should return true if the structure should inherit +the alignment requirements of an unnamed bitfield's type. +@end deftypefn + @defmac MEMBER_TYPE_FORCES_BLK (@var{field}, @var{mode}) Return 1 if a structure or array containing @var{field} should be accessed using @code{BLKMODE}. |