[libstdc++ PATCH] Add support for std::uncaught_exceptions

Jonathan Wakely jwakely@redhat.com
Mon Apr 27 20:40:00 GMT 2015


On 13/04/15 02:24 +0300, Ville Voutilainen wrote:
>The patch is a bit large since it does the baseline_symbols regeneration
>and other new-version api-dance.
>Hence attached gzipped.
>
>Tested on Linux x86-64.
>
>2015-04-13  Ville Voutilainen  <ville.voutilainen@gmail.com>
>    Add support for std::uncaught_exceptions.
>    * acinclude.m4: Bump libtool_VERSION.
>    * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Regenerate.
>    * config/abi/pre/gnu.ver: Export the new symbol.
>    * configure: Bump libtool_VERSION.
>    * libsupc++/eh_catch.cc(uncaught_exceptions): New.
>    * libsupc++/exception(uncaught_exceptions): Ditto.
>    * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc: New.
>    * testsuite/util/testsuite_abi.cc: Add 3.4.22 as the latest version.

Tested x86_64-linux and powerpc64le-linux. Committed to trunk.

The baseline_symbols changes aren't needed now and I tweaked the
gnu.ver file slightly.

I also added the feature-test macro recommended by N4440 and changed
the new function to only be declared for -std=gnu++?? and -std=c++1z.
It's useful and easy to provide it for pre-C++17 as an extension.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 7619 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150427/941859c1/attachment.bin>


More information about the Libstdc++ mailing list