Mail Archives: cygwin/2002/05/06/13:19:22
--Boundary_(ID_KhHqqhlkUcfiJ660OC/vJg)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
Chris,
The attached patch eliminates warnings such as the following:
In file included from /usr/include/g++-3/set:31,
from ../main.cc:145:
/usr/include/g++-3/stl_tree.h: In function `int __black_count(_Rb_tree_node_base *, _Rb_tree_node_base *)':
/usr/include/g++-3/stl_tree.h:1258: warning: can't inline call to `int __black_count(_Rb_tree_node_base *, _Rb_tree_node_base *)'
/usr/include/g++-3/stl_tree.h:1266: warning: called from here
See the following for further motivation:
http://cygwin.com/ml/cygwin-apps/2002-05/msg00126.html
http://cygwin.com/ml/cygwin-apps/2002-05/msg00127.html
Would you be willing to accept this patch into the Cygwin gcc source tree?
Thanks,
Jason
--Boundary_(ID_KhHqqhlkUcfiJ660OC/vJg)
Content-type: text/plain; charset=us-ascii; NAME=stl_tree.h.diff
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=stl_tree.h.diff
--- stl_tree.h.orig Mon May 6 10:38:33 2002
+++ stl_tree.h Mon May 6 10:38:52 2002
@@ -1253,7 +1253,7 @@ _Rb_tree<_Key, _Value, _KoV, _Compare, _
upper_bound(__k));
}
-inline int
+int
__black_count(_Rb_tree_node_base* __node, _Rb_tree_node_base* __root)
{
if (__node == 0)
--Boundary_(ID_KhHqqhlkUcfiJ660OC/vJg)
Content-type: text/plain; charset=us-ascii; NAME=stl_tree.h.ChangeLog
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=stl_tree.h.ChangeLog
Mon May 6 13:18:11 2002 Jason Tishler <jason AT tishler DOT net>
* stl/stl_tree.h (__black_count): Remove inline to eliminate compiler
warnings.
--Boundary_(ID_KhHqqhlkUcfiJ660OC/vJg)
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--Boundary_(ID_KhHqqhlkUcfiJ660OC/vJg)--
- Raw text -