From 0a798c16c13970d020bc5b93c1aceac9ec5dd7a1 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 21 Oct 2015 13:48:46 -0700 Subject: [PATCH] Update documentation for address space hooks * target.def (addr_space.pointer_mode): Update documentation of default behavior. (addr_space.address_mode): Likewise. * tm.texi: Update. From-SVN: r229144 --- gcc/ChangeLog | 4 ++++ gcc/doc/tm.texi | 6 ++---- gcc/target.def | 6 ++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d5d304dcbf9..20f72c51b96 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -6,6 +6,10 @@ (default_addr_space_valid_pointer_mode): Likewise. (default_addr_space_legitimate_address_p): Likewise. (default_addr_space_legitimize_address): Likewise. + * target.def (addr_space.pointer_mode): Update documentation + of default behavior. + (addr_space.address_mode): Likewise. + * tm.texi: Update. * expr.c (expand_expr_real_2): Use convert_modes on disjoint address spaces. diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 4a12ad6f429..e6f712a4046 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -10276,15 +10276,13 @@ c_register_addr_space ("__ea", ADDR_SPACE_EA); @deftypefn {Target Hook} machine_mode TARGET_ADDR_SPACE_POINTER_MODE (addr_space_t @var{address_space}) Define this to return the machine mode to use for pointers to @var{address_space} if the target supports named address spaces. -The default version of this hook returns @code{ptr_mode} for the -generic address space only. +The default version of this hook returns @code{ptr_mode}. @end deftypefn @deftypefn {Target Hook} machine_mode TARGET_ADDR_SPACE_ADDRESS_MODE (addr_space_t @var{address_space}) Define this to return the machine mode to use for addresses in @var{address_space} if the target supports named address spaces. -The default version of this hook returns @code{Pmode} for the -generic address space only. +The default version of this hook returns @code{Pmode}. @end deftypefn @deftypefn {Target Hook} bool TARGET_ADDR_SPACE_VALID_POINTER_MODE (machine_mode @var{mode}, addr_space_t @var{as}) diff --git a/gcc/target.def b/gcc/target.def index 93478e8aeea..e4bc249939a 100644 --- a/gcc/target.def +++ b/gcc/target.def @@ -3129,8 +3129,7 @@ DEFHOOK (pointer_mode, "Define this to return the machine mode to use for pointers to\n\ @var{address_space} if the target supports named address spaces.\n\ -The default version of this hook returns @code{ptr_mode} for the\n\ -generic address space only.", +The default version of this hook returns @code{ptr_mode}.", machine_mode, (addr_space_t address_space), default_addr_space_pointer_mode) @@ -3139,8 +3138,7 @@ DEFHOOK (address_mode, "Define this to return the machine mode to use for addresses in\n\ @var{address_space} if the target supports named address spaces.\n\ -The default version of this hook returns @code{Pmode} for the\n\ -generic address space only.", +The default version of this hook returns @code{Pmode}.", machine_mode, (addr_space_t address_space), default_addr_space_address_mode) -- 2.30.2