From 352d2690f1eb7268cc21de643759e2f666119e9f Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 2 Oct 2019 16:52:41 +0100 Subject: [PATCH] Remove greedy wildcards from libstdc++ linker script The only symbols matched by std::e[a-q]* and std::e[s-z]* that are supposed to be in the GLIBCXX_3.4 version are std::exception::* and std::endl and std::ends. The latter two already have explicit patterns matching them, so we just need to match std::exception::*. This change ensures that any new symbols with a return type of std::enable_if<...> are not added to the GLIBCXX_3.4 version. * config/abi/pre/gnu.ver: Tighten up greedy wildcards. From-SVN: r276468 --- libstdc++-v3/ChangeLog | 2 ++ libstdc++-v3/config/abi/pre/gnu.ver | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9b534cb2832..2474a69e805 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,7 @@ 2019-10-02 Jonathan Wakely + * config/abi/pre/gnu.ver: Tighten up greedy wildcards. + * doc/xml/manual/parallel_mode.xml: Add caveat about support for recent standards. * doc/html/*: Regenerate. diff --git a/libstdc++-v3/config/abi/pre/gnu.ver b/libstdc++-v3/config/abi/pre/gnu.ver index 07a00036827..e61fbe0ad66 100644 --- a/libstdc++-v3/config/abi/pre/gnu.ver +++ b/libstdc++-v3/config/abi/pre/gnu.ver @@ -80,9 +80,8 @@ GLIBCXX_3.4 { # std::domain_error::d*; # std::domain_error::~d*; std::d[p-z]*; - std::e[a-q]*; std::error[^_]*; - std::e[s-z]*; + std::exception::*; std::gslice*; std::h[^a]*; std::i[a-m]*; -- 2.30.2