diff options
author | Mark Mitchell <mark@codesourcery.com> | 2007-06-01 00:44:36 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2007-06-01 00:44:36 +0000 |
commit | 46a9e5217844297332b2e5e0c568d4448f365e96 (patch) | |
tree | 420cff63564965826ce919df9219fa10d126d563 /gcc/expr.c | |
parent | fa2185f0c8be353357878e67a0bb610ab7a9a704 (diff) | |
download | gcc-46a9e5217844297332b2e5e0c568d4448f365e96.zip gcc-46a9e5217844297332b2e5e0c568d4448f365e96.tar.gz gcc-46a9e5217844297332b2e5e0c568d4448f365e96.tar.bz2 |
decl.c (get_atexit_fn_ptr_type): New function.
* decl.c (get_atexit_fn_ptr_type): New function.
(get_atexit_node): Use it.
(start_cleanup_fn): Likewise.
(register_dtor_fn): Use the object's destructor, instead of a
separate cleanup function, where possible.
* cp-tree.h (CPTI_ATEXIT_FN_PTR_TYPE): New enumerator.
(atexit_fn_ptr_type_node): New macro.
* decl2.c (build_cleanup): Use build_address.
* g++.dg/init/cleanup3.C: New test.
From-SVN: r125253
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions