diff options
author | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-29 15:21:13 +0000 |
---|---|---|
committer | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-29 15:21:13 +0000 |
commit | 5f458503731f4a23c7c674adebf7c4185e26579c (patch) | |
tree | 13c3108b931a9f5530ee972b04fc4361a6cff803 /gcc/target.h | |
parent | 3686849050cfe9e28fee36c7785f70ee9d4e491c (diff) | |
download | gcc-5f458503731f4a23c7c674adebf7c4185e26579c.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112493 138bc75d-0d04-0410-961f-82ee72b054a4
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); |