[PATCH] libstdc++/8645

Paolo Carlini pcarlini@unitus.it
Fri Nov 22 12:54:00 GMT 2002


Phil Edwards wrote:

>On Fri, Nov 22, 2002 at 03:07:23PM +0100, Paolo Carlini wrote:
>  
>
>>	* include/bits/stl_tree.h (_Rb_tree_rebalance_for_erase):
>>	Don't check that __w->_M_left != 0 and __w->_M_right != 0
>>	when they can't be otherwise.
>>    
>>
>Thanks.  As an aside, I wondered if those couldn't already be elided by
>the compiler using
>
>    http://gcc.gnu.org/news/null.html
>
>but I don't know whether this optimization is still performed.
>
A *very* interesting aside, indeed!

Thanks for your review.

Ciao, Paolo.



More information about the Libstdc++ mailing list