Commit 0a798c16 by Richard Henderson Committed by Richard Henderson

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
parent 0f16c572
......@@ -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.
......@@ -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})
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment