exception (get_terminate(), [...]): Declare.
authorJonathan Wakely <jwakely.gcc@gmail.com>
Wed, 3 Apr 2013 00:08:54 +0000 (00:08 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 3 Apr 2013 00:08:54 +0000 (01:08 +0100)
commitdca77a8a1b68f55e5ff3094cba3bf9ce5754a4b2
tree41b23a61903b4ffa760fefd1e9f216e33e089932
parentb6fd8c8e8807f49f0f2cb646e1811f1f29a5aae1
exception (get_terminate(), [...]): Declare.

* libsupc++/exception (get_terminate(), get_unexpected()): Declare.
* libsupc++/eh_terminate.cc (get_terminate() , set_unexpected()):
Define.
(set_terminate(terminate_handler)): Set atomically.
(set_unexpected(terminate_handler)): Likewise.
* libsupc++/new (get_new_handler()): Declare.
* libsupc++/new_handler.cc (get_new_handler()): Define.
(set_new_handler(new_handler)): Set atomically.
(__new_handler): Use internal linkage.
* libsupc++/new_op.cc (operator new): Use get_new_handler().
* libsupc++/new_opnt.cc (operator new): Likewise.
* acinclude.m4: Bump libtool_VERSION to 6:19:0.
* configure: Regenerate.
* libsupc++/Makefile.am: Compile above files with -std=gnu++11.
* libsupc++/Makefile.in: Regenerate.
* config/abi/pre/gnu.ver: Add new exports.
* doc/xml/manual/status_cxx2011.xml: Update.
* testsuite/18_support/headers/exception/synopsis.cc: Check accessors
for handlers.
* testsuite/18_support/headers/new/synopsis.cc: Likewise.
* testsuite/18_support/new_handler.cc: New.
* testsuite/18_support/terminate_handler.cc: New.
* testsuite/18_support/unexpected_handler.cc: New.

From-SVN: r197380
18 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/acinclude.m4
libstdc++-v3/config/abi/pre/gnu.ver
libstdc++-v3/configure
libstdc++-v3/doc/xml/manual/status_cxx2011.xml
libstdc++-v3/libsupc++/Makefile.am
libstdc++-v3/libsupc++/Makefile.in
libstdc++-v3/libsupc++/eh_terminate.cc
libstdc++-v3/libsupc++/exception
libstdc++-v3/libsupc++/new
libstdc++-v3/libsupc++/new_handler.cc
libstdc++-v3/libsupc++/new_op.cc
libstdc++-v3/libsupc++/new_opnt.cc
libstdc++-v3/testsuite/18_support/headers/exception/synopsis.cc
libstdc++-v3/testsuite/18_support/headers/new/synopsis.cc
libstdc++-v3/testsuite/18_support/new_handler.cc [new file with mode: 0644]
libstdc++-v3/testsuite/18_support/terminate_handler.cc [new file with mode: 0644]
libstdc++-v3/testsuite/18_support/unexpected_handler.cc [new file with mode: 0644]