gcc 2.95.3-5 inline patch

Jason Tishler jason@tishler.net
Mon May 6 10:18:00 GMT 2002


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
-------------- next part --------------
--- 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)
-------------- next part --------------
Mon May  6 13:18:11 2002  Jason Tishler <jason@tishler.net>

	* stl/stl_tree.h (__black_count): Remove inline to eliminate compiler
	warnings.

-------------- next part --------------
--
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/


More information about the Cygwin mailing list