cp-tree.h (struct language_function): Remove temp_name_counter.
authorMark Mitchell <mark@codesourcery.com>
Fri, 30 Jun 2000 07:16:35 +0000 (07:16 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 30 Jun 2000 07:16:35 +0000 (07:16 +0000)
commitc395453cb66ab273126e18e7aec5afedc37042f8
tree02782e15a7890f06a14c2de21649dec03a5d3c13
parentc1c8f8cc4f1ece37f1f9a3d415fce73f6b5172ee
cp-tree.h (struct language_function): Remove temp_name_counter.

* cp-tree.h (struct language_function): Remove temp_name_counter.
(temp_name_counter): Remove.
(get_temp_name): Change prototype.
(get_guard): New function.
(get_guard_cond): Likewise.
(set_guard): Likewise.
* cvt.c (build_up_reference): Adjust call to get_temp_name.
* decl.c (expand_static_init): Use get_guard and friends to
implement guard variables.
* decl2.c (get_temp_name): Assume that the variables created are
always static.
(get_sentry): Rename to ...
(get_guard): ... this.  Implement new ABI guard variables.
(get_guard_bits): New function.
(get_guard_cond): Likewise.
(set_guard): Likewise.
(start_static_initialization_or_destruction): Use them.
(do_static_initialization): Replace sentry with guard throughout.
(do_static_destruction): Likewise.
* init.c (create_temporary_var): Add comment.

From-SVN: r34803
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/cvt.c
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/init.c