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/target.h | |
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/target.h')
-rw-r--r-- | gcc/target.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h index c122adb..6e28810 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -307,6 +307,9 @@ struct gcc_target Microsoft Visual C++ bitfield layout rules. */ bool (* ms_bitfield_layout_p) (tree record_type); + /* Return true if anonymous bitfields affect structure alignment. */ + bool (* align_anon_bitfield) (void); + /* Set up target-specific built-in functions. */ void (* init_builtins) (void); |