]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/semantics.c
cp-tree.h (struct language_function): Remove x_base_init_list and x_member_init_list.
authorMark Mitchell <mark@codesourcery.com>
Fri, 16 Jun 2000 07:34:51 +0000 (07:34 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 16 Jun 2000 07:34:51 +0000 (07:34 +0000)
commitfd74ca0bf2e6effbc70d576114f7fca2ff341f47
tree396b0aea2fa14d244a3fde9486d0ea106b5b7006
parentff1c0096a1cb412bed7d62e333dcd4020c90ca7c
cp-tree.h (struct language_function): Remove x_base_init_list and x_member_init_list.

* cp-tree.h (struct language_function): Remove x_base_init_list
and x_member_init_list.
(current_base_init_list): Remove.
(current_member_init_list): Likewise.
(setup_vtbl_ptr): Change prototype.
(emit_base_init): Likewise.
(expand_member_init): Likewise.
(reinit_parse_for_function): Remove.
* decl.c (save_function_data): Don't clear x_base_init_list and
x_member_init_list.
(mark_language_function): Don't mark them.
* init.c (perform_member_init): Tweak comment.
(sort_member_init): Take the list of initializers as an argument.
(sort_base_init): Likewise.
(emit_base_init): Likewise.
(expand_member_init): Return the initializer.  Don't use global
variables.
* lex.c (reinit_parse_for_function): Remove.
* method.c (build_template_parm_names): Correct substitution.
(do_build_copy_constructor): Don't use current_member_init_list
and current_base_init_list.
(synthesize_method): Likewise.
* parse.y (base_init): Split mem-initializers into
base-initializers and field-initializers.
(member_init_list): Build up the list here.
(member_init): Return the initializer.
(fn.depfn): Don't use reinit_parse_for_function.
* parse.c: Regenerated.
* pt.c (convert_nontype_argument): Don't make an ADDR_EXPR of the
ERROR_MARK.
(tsubst_expr): Don't use current_member_init_list
and current_base_init_list.
(tsubst_expr_values): Rename to ...
(tsubst_initializer_list): ... this.  Use convert_from_reference.
* semantics.c (setup_vtbl_ptr): Don't use current_member_init_list
and current_base_init_list.
(begin_function_definition): Don't call reinit_parse_for_function.

* dump.c (dequeue_and_dump): Use TREE_VEC_LENGTH with vectors.

* error.c (dump_expr): Handle ADDR_EXPRs with REFERENCE_TYPE
correctly.

From-SVN: r34571
13 files changed:
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/dump.c
gcc/cp/error.c
gcc/cp/init.c
gcc/cp/lex.c
gcc/cp/method.c
gcc/cp/parse.c
gcc/cp/parse.y
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/g++.old-deja/g++.pt/ref3.C [new file with mode: 0644]
This page took 0.058803 seconds and 5 git commands to generate.