aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/except.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-08-18 20:44:14 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-08-18 20:44:14 +0000
commit4ce3d5373035e991585e11d68a07c6e6e101eb92 (patch)
treeaec1b78caa248bc5c7196080755c9db3d1f8c70a /gcc/cp/except.c
parent88049523aee2c2f48a78bd6f7cf36958a864f302 (diff)
downloadgcc-4ce3d5373035e991585e11d68a07c6e6e101eb92.zip
gcc-4ce3d5373035e991585e11d68a07c6e6e101eb92.tar.gz
gcc-4ce3d5373035e991585e11d68a07c6e6e101eb92.tar.bz2
cp-tree.h (build_lang_field_decl): Remove.
* cp-tree.h (build_lang_field_decl): Remove. * class.c (build_vtable): Replace calls to build_lang_field_decl with build_lang_decl. (prepare_fresh_vtable): Likewise. (finish_struct_1): Likewise. (init_class_processing): Likewise. * decl.c (push_using_decl): Likewise. (init_decl_processsing): Likewise. (grokvardecl): Likewise. (build_ptrmemfunc_type): Likewise. (grokdeclarator): Likewise. (build_enumerator): Likewise. * decl2.c (grok_x_components): Likewise. (do_class_using_decl): Likewise. * except.c (call_eh_info): Likewise. * init.c (init_init_processing): Likewise. * rtti.c (expand_class_decl): Likewise. * tree.c (build_base_fields): Likewise. (build_vbase_pointer_fields): Likewise. * lex.c (build_lang_decl): Build declarations on the permanent obstack if we're building statmeent trees. (retrofit_lang_decl): Handle both the full lang_decl and also the smaller lang_decl_flags here. (build_lang_field_decl): Remove. * pt.c (push_template_decl_real): Issue errors for variable declarations that are not static members. From-SVN: r28755
Diffstat (limited to 'gcc/cp/except.c')
-rw-r--r--gcc/cp/except.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/gcc/cp/except.c b/gcc/cp/except.c
index 2dbdbd3..0a9bcf5 100644
--- a/gcc/cp/except.c
+++ b/gcc/cp/except.c
@@ -245,13 +245,13 @@ call_eh_info ()
/* struct cp_eh_info. This must match exception.cc. Note that this
type is not pushed anywhere. */
t1= make_lang_type (RECORD_TYPE);
- fields[0] = build_lang_field_decl (FIELD_DECL,
+ fields[0] = build_lang_decl (FIELD_DECL,
get_identifier ("handler_label"), ptr_type_node);
- fields[1] = build_lang_field_decl (FIELD_DECL,
+ fields[1] = build_lang_decl (FIELD_DECL,
get_identifier ("dynamic_handler_chain"), ptr_type_node);
- fields[2] = build_lang_field_decl (FIELD_DECL,
+ fields[2] = build_lang_decl (FIELD_DECL,
get_identifier ("info"), ptr_type_node);
- fields[3] = build_lang_field_decl (FIELD_DECL,
+ fields[3] = build_lang_decl (FIELD_DECL,
get_identifier ("table_index"), ptr_type_node);
/* N.B.: The fourth field LEN is expected to be
the number of fields - 1, not the total number of fields. */
@@ -259,32 +259,32 @@ call_eh_info ()
t1 = build_pointer_type (t1);
t1= make_lang_type (RECORD_TYPE);
- fields[0] = build_lang_field_decl (FIELD_DECL,
+ fields[0] = build_lang_decl (FIELD_DECL,
get_identifier ("match_function"), ptr_type_node);
- fields[1] = build_lang_field_decl (FIELD_DECL,
+ fields[1] = build_lang_decl (FIELD_DECL,
get_identifier ("language"), short_integer_type_node);
- fields[2] = build_lang_field_decl (FIELD_DECL,
+ fields[2] = build_lang_decl (FIELD_DECL,
get_identifier ("version"), short_integer_type_node);
/* N.B.: The fourth field LEN is expected to be
the number of fields - 1, not the total number of fields. */
finish_builtin_type (t1, "__eh_info", fields, 2, ptr_type_node);
t = make_lang_type (RECORD_TYPE);
- fields[0] = build_lang_field_decl (FIELD_DECL,
- get_identifier ("eh_info"), t1);
- fields[1] = build_lang_field_decl (FIELD_DECL, get_identifier ("value"),
- ptr_type_node);
- fields[2] = build_lang_field_decl (FIELD_DECL, get_identifier ("type"),
- ptr_type_node);
- fields[3] = build_lang_field_decl
+ fields[0] = build_lang_decl (FIELD_DECL,
+ get_identifier ("eh_info"), t1);
+ fields[1] = build_lang_decl (FIELD_DECL, get_identifier ("value"),
+ ptr_type_node);
+ fields[2] = build_lang_decl (FIELD_DECL, get_identifier ("type"),
+ ptr_type_node);
+ fields[3] = build_lang_decl
(FIELD_DECL, get_identifier ("cleanup"),
build_pointer_type (build_function_type
(ptr_type_node, tree_cons
(NULL_TREE, ptr_type_node, void_list_node))));
- fields[4] = build_lang_field_decl (FIELD_DECL, get_identifier ("caught"),
- boolean_type_node);
- fields[5] = build_lang_field_decl (FIELD_DECL, get_identifier ("next"),
- build_pointer_type (t));
- fields[6] = build_lang_field_decl
+ fields[4] = build_lang_decl (FIELD_DECL, get_identifier ("caught"),
+ boolean_type_node);
+ fields[5] = build_lang_decl (FIELD_DECL, get_identifier ("next"),
+ build_pointer_type (t));
+ fields[6] = build_lang_decl
(FIELD_DECL, get_identifier ("handlers"), long_integer_type_node);
/* N.B.: The fourth field LEN is expected to be
the number of fields - 1, not the total number of fields. */