aboutsummaryrefslogtreecommitdiff
path: root/gcc/langhooks.h
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2002-03-29 08:43:22 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-03-29 08:43:22 +0000
commitf1e639b1ac14b056a0a3ce3837959823d2611d50 (patch)
tree9a53112c1017a925859f832c6bbb74e053fa9453 /gcc/langhooks.h
parentf17f93326d7d690113c87abf1532bd9f4be8301f (diff)
downloadgcc-f1e639b1ac14b056a0a3ce3837959823d2611d50.zip
gcc-f1e639b1ac14b056a0a3ce3837959823d2611d50.tar.gz
gcc-f1e639b1ac14b056a0a3ce3837959823d2611d50.tar.bz2
Makefile.in (except.o): Update.
* Makefile.in (except.o): Update. * except.c: Include langhooks.h. (init_eh): Use langhook. * langhooks-def.h (LANG_HOOKS_MAKE_TYPE, LANG_HOOKS_FOR_TYPES_INITIALIZER): New. (LANG_HOOKS_INITIALIZER): Update. * langhooks.h (lang_hooks_for_types): New. (struct lang_hooks): Add it. * tree.c (make_lang_type_fn, make_lang_type): Remove. * tree.h (make_lang_type_fn, make_lang_type): Remove. config: * alpha/alpha.c: Include langhooks.h. (alpha_build_va_list): Use langhook. * d30v/d30v.c: Include langhooks.h. (d30v_build_va_list): Use langhook. * i386/i386.c: Include langhooks.h. (ix86_build_va_list): Use langhook. * rs6000/rs6000.c (rs6000_build_va_list): Use langhook. * s390/s390.c: Include langhooks.h. (s390_build_va_list): Use langhook. * stormy16/stormy16.c: Include langhooks.h. (stormy16_build_va_list): Use langhook. cp: * cp-lang.c (LANG_HOOKS_MAKE_TYPE): Redefine. * cp-tree.h (cp_make_lang_type): Rename. * lex.c (cp_make_lang_type): Rename. (make_aggr_type): Update. * tree.c (init_tree): Don't set make_lang_type_fn. From-SVN: r51558
Diffstat (limited to 'gcc/langhooks.h')
-rw-r--r--gcc/langhooks.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/langhooks.h b/gcc/langhooks.h
index a71f7ec..88a45f9 100644
--- a/gcc/langhooks.h
+++ b/gcc/langhooks.h
@@ -67,6 +67,13 @@ struct lang_hooks_for_tree_dump
int (*type_quals) PARAMS ((tree));
};
+/* Hooks related to types. */
+
+struct lang_hooks_for_types
+{
+ tree (*make_type) PARAMS ((enum tree_code));
+};
+
/* Language hooks related to decls and the symbol table. */
struct lang_hooks_for_decls
@@ -233,6 +240,8 @@ struct lang_hooks
struct lang_hooks_for_decls decls;
+ struct lang_hooks_for_types types;
+
/* Whenever you add entries here, make sure you adjust langhooks-def.h
and langhooks.c accordingly. */
};