diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-17 15:50:44 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-17 15:50:44 +0000 |
commit | f91ed644dd9a0394f268eb3410ee3a17bb439a1c (patch) | |
tree | 96cde03a3099b4fe12c7701de5fb3531c7063b6b /gcc/doc/tm.texi.in | |
parent | 4b9beb88f5d49452a1fb25826c00cd81b7461b04 (diff) | |
download | gcc-f91ed644dd9a0394f268eb3410ee3a17bb439a1c.tar.gz |
Convert MEMBER_TYPE_FORCES_BLK to target hook
* stor-layout.c (compute_record_mode): Replace
MEMBER_TYPE_FORCES_BLK with targetm.member_type_forces_blk.
(layout_type): Likewise.
* system.h: Poison MEMBER_TYPE_FORCES_BLK.
* target.def (member_type_forces_blk): New target hook.
* targhooks.c (default_member_type_forces_blk): New.
* targhooks.h (default_member_type_forces_blk): Likewise.
* doc/tm.texi.in (MEMBER_TYPE_FORCES_BLK): Removed.
(TARGET_MEMBER_TYPE_FORCES_BLK): New hook.
* doc/tm.texi: Regenerated.
* config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Removed.
* config/ia64/ia64.c (ia64_member_type_forces_blk): New
function.
(TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
* config/rs6000/rs6000.c (TARGET_MEMBER_TYPE_FORCES_BLK): New
macro.
(rs6000_member_type_forces_blk): New function.
* config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Removed.
* config/xtensa/xtensa.c (xtensa_member_type_forces_blk): New
function.
(TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
* config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Removed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190488 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc/tm.texi.in')
-rw-r--r-- | gcc/doc/tm.texi.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index e7d9cecc4a5..d20b8aa9058 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -1240,9 +1240,9 @@ these accesses should use the bitfield container type. The default is @code{!TARGET_STRICT_ALIGN}. @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}. +@hook TARGET_MEMBER_TYPE_FORCES_BLK +Return true if a structure, union or array containing @var{field} should +be accessed using @code{BLKMODE}. If @var{field} is the only field in the structure, @var{mode} is its mode, otherwise @var{mode} is VOIDmode. @var{mode} is provided in the @@ -1250,7 +1250,7 @@ case where structures of one field would require the structure's mode to retain the field's mode. Normally, this is not needed. -@end defmac +@end deftypefn @defmac ROUND_TYPE_ALIGN (@var{type}, @var{computed}, @var{specified}) Define this macro as an expression for the alignment of a type (given |