aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
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/c-common.h
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/c-common.h')
-rw-r--r--gcc/c-common.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index d53fa0d..039edbe 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -288,10 +288,6 @@ struct c_common_resword
#define D_CXX_OBJC 0x100 /* In Objective C, and C++, but not C. */
#define D_CXXWARN 0x200 /* In C warn with -Wcxx-compat. */
-/* Macro for backends to define named address keywords. */
-#define ADDR_SPACE_KEYWORD(STRING, VALUE) \
- { STRING, RID_FIRST_ADDR_SPACE + (VALUE), D_CONLY | D_EXT }
-
/* The reserved keyword table. */
extern const struct c_common_resword c_common_reswords[];
@@ -803,6 +799,7 @@ extern const struct attribute_spec c_common_format_attribute_table[];
extern tree (*make_fname_decl) (location_t, tree, int);
+extern void c_register_addr_space (const char *str, addr_space_t as);
extern const char *c_addr_space_name (addr_space_t as);
extern tree identifier_global_value (tree);
extern void record_builtin_type (enum rid, const char *, tree);