diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-06-30 07:16:35 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-06-30 07:16:35 +0000 |
commit | c395453cb66ab273126e18e7aec5afedc37042f8 (patch) | |
tree | 02782e15a7890f06a14c2de21649dec03a5d3c13 /gcc/cp/cvt.c | |
parent | c1c8f8cc4f1ece37f1f9a3d415fce73f6b5172ee (diff) | |
download | gcc-c395453cb66ab273126e18e7aec5afedc37042f8.zip gcc-c395453cb66ab273126e18e7aec5afedc37042f8.tar.gz gcc-c395453cb66ab273126e18e7aec5afedc37042f8.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r-- | gcc/cp/cvt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index e3e8692..2cbbd59 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -356,7 +356,7 @@ build_up_reference (type, arg, flags) /* Create a new temporary variable. */ tree targ = arg; if (toplevel_bindings_p ()) - arg = get_temp_name (argtype, 1); + arg = get_temp_name (argtype); else { arg = pushdecl (build_decl (VAR_DECL, NULL_TREE, argtype)); |