From 3ef0694cb173c80c3466885de23fa937c8903653 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 27 May 2010 11:46:06 +0000 Subject: c-common.h (c_register_addr_space): Add prototype. * c-common.h (c_register_addr_space): Add prototype. (ADDR_SPACE_KEYWORD): Remove. * c-common.c (c_register_addr_space): New function. (c_addr_space_name): Reimplement. (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS. * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove. (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space. * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space. Remove TARGET_ADDR_SPACE_KEYWORDS. From-SVN: r159916 --- gcc/doc/tm.texi | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'gcc/doc') diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index b0175ea..de56de6 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -9966,17 +9966,14 @@ Internally, address spaces are represented as a small integer in the range 0 to 15 with address space 0 being reserved for the generic address space. -@defmac TARGET_ADDR_SPACE_KEYWORDS -A list of @code{ADDR_SPACE_KEYWORD} macros to define each named -address keyword. The @code{ADDR_SPACE_KEYWORD} macro takes two -arguments, the keyword string and the number of the named address -space. For example, the SPU port uses the following to declare -@code{__ea} as the keyword for named address space #1: +To register a named address space qualifier keyword with the C front end, +the target may call the @code{c_register_addr_space} routine. For example, +the SPU port uses the following to declare @code{__ea} as the keyword for +named address space #1: @smallexample #define ADDR_SPACE_EA 1 -#define TARGET_ADDR_SPACE_KEYWORDS ADDR_SPACE_KEYWORD ("__ea", ADDR_SPACE_EA) +c_register_addr_space ("__ea", ADDR_SPACE_EA); @end smallexample -@end defmac @deftypefn {Target Hook} {enum 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 -- cgit v1.1