cp-tree.h (register_dtor_fn): New function.
authorMark Mitchell <mark@codesourcery.com>
Sun, 23 Jan 2000 18:40:20 +0000 (18:40 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 23 Jan 2000 18:40:20 +0000 (18:40 +0000)
commitbf419747e917f86ff61845ed136d5ec2386b4a8f
tree90d64c7e911431e3eb2ef805a502b9b6dff47c7f
parent5c75f60e28199fbd26221017d83b6a7750403089
cp-tree.h (register_dtor_fn): New function.

* cp-tree.h (register_dtor_fn): New function.
* decl.c (destroy_local_static): Rename to ...
(register_dtor_fn): ... this.  Give it external linkage.
(expand_static_init): Use it.
* decl2.c (do_static_initialization): Likewise, if using
__cxa_atexit.
(do_static_destruction): Check that __cxa_atexit is not in use.
(finish_file): Don't call do_static_destruction if using
__cxa_atexit.

* typeck.c (convert_arguments): Restore two-message error
reporting.

From-SVN: r31570
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/typeck.c