Darwin fix libstdc++ build warnings.
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 6 Dec 2018 19:42:21 +0000 (19:42 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Thu, 6 Dec 2018 19:42:21 +0000 (19:42 +0000)
commitc438ab79bf28a354599dc6c460b2b662f555175b
tree84a3cfdfdccfec699559017b85349b9553fe7860
parent881e947ebd7a09e9620d1c3ccbc123eec43871dc
Darwin fix libstdc++ build warnings.

GCC does not export construction vtable symbols from shared libraries.

The symbols are marked hidden in the objects; for Darwin that makes
them also external (“private_extern” is Darwin’s hidden) which means
that they show up in the list of possible symbols for export from
libstdc++, and there are sufficiently relaxed match conditions that
they reach the exports list.   When Darwin’s static linker encounters
them it generates a warning that they cannot be exported.  This patch
prunes them from the list of symbols to be considered, thus
eliminating the warnings. No functional Change inended to the library
exports.

2018-12-06  Iain Sandoe  <iain@sandoe.co.uk>

* scripts/make_exports.pl (check names): Don’t try to export
construction vtable symbols.

From-SVN: r266864
libstdc++-v3/ChangeLog
libstdc++-v3/scripts/make_exports.pl