aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2010-05-27 11:46:06 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2010-05-27 11:46:06 +0000
commit3ef0694cb173c80c3466885de23fa937c8903653 (patch)
tree7d09050af3ae6ae27846c43f8d5696a77c6f6d51 /gcc/doc
parentade526578e2ee8bbf16574da2c99353aac71f1ec (diff)
downloadgcc-3ef0694cb173c80c3466885de23fa937c8903653.zip
gcc-3ef0694cb173c80c3466885de23fa937c8903653.tar.gz
gcc-3ef0694cb173c80c3466885de23fa937c8903653.tar.bz2
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
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/tm.texi13
1 files changed, 5 insertions, 8 deletions
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