Avoid _Rb_tree_rotate_[left,right] symbols export
François Dumont
frs.dumont@gmail.com
Thu May 11 20:06:00 GMT 2017
Hi
When versioned namespace is active we can avoid export of
_Rb_tree_rotate_[left,right] symbols. I also took the opportunity to put
static functions in the anonymous namespace rather than using static. Is
this usage of static still planned to be deprecated ?
* src/c++98/tree.cc [_GLIBCXX_INLINE_VERSION]
(_Rb_tree_rotate_left, _Rb_tree_rotate_right): Remove.
* src/c++98/tree.cc (local_Rb_tree_increment, local_Rb_tree_decrement):
Move to anonymous namespace.
(local_Rb_tree_rotate_left, local_Rb_tree_rotate_right): Likewise.
Tested under Linux x86_64 with versioned namespace.
Ok to commit ?
François
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree.cc.patch
Type: text/x-patch
Size: 5269 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20170511/5a465363/attachment.bin>
More information about the Libstdc++
mailing list