diff options
author | Paul Brook <paul@codesourcery.com> | 2006-03-29 15:21:13 +0000 |
---|---|---|
committer | Paul Brook <pbrook@gcc.gnu.org> | 2006-03-29 15:21:13 +0000 |
commit | c2a644391b7e8d4603d95e97daabd1b368052421 (patch) | |
tree | 13c3108b931a9f5530ee972b04fc4361a6cff803 /gcc/target.h | |
parent | 4dc19cc052742f88e118458c6036468d0a9bf7a6 (diff) | |
download | gcc-c2a644391b7e8d4603d95e97daabd1b368052421.tar.gz |
re PR middle-end/23623 (volatile keyword changes bitfield access size from 32bit to 8bit)
2006-03-29 Paul Brook <paul@codesourcery.com>
PR middle-end/23623
* targhooks.c (default_narrow_bitfield): New fuction.
* targhooks.h (default_narrow_bitfield): add prototype.
* target.h (gcc_target): Add narrow_volatile_bitfield.
* target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
* stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
* doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
* config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
From-SVN: r112493
Diffstat (limited to 'gcc/target.h')
-rw-r--r-- | gcc/target.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h index 1b768e4f49c..e9a5eca9255 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -418,6 +418,10 @@ struct gcc_target /* Return true if anonymous bitfields affect structure alignment. */ bool (* align_anon_bitfield) (void); + /* Return true if volatile bitfields should use the narrowest type possible. + Return false if they should use the container type. */ + bool (* narrow_volatile_bitfield) (void); + /* Set up target-specific built-in functions. */ void (* init_builtins) (void); |