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/cp/ChangeLog | |
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/cp/ChangeLog')
-rw-r--r-- | gcc/cp/ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ea352c9..ec14928 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,14 @@ +2007-05-31 Mark Mitchell <mark@codesourcery.com> + + * 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. + 2007-05-31 Daniel Berlin <dberlin@dberlin.org> * typeck.c (build_binary_op): Include types in error. |