------- Comment #3 from msharov at hotmail dot com 2005-11-21 15:07 ------- By its very nature, demonstrating the problem requires a large example, so I am unable to provide a sufficiently compact one to post here. You can, however, download the project I'm having problems with from SourceForge http://sourceforge.net/projects/ustl. In it I'm using a custom configure script to set --param values and do what else I can to avoid these errors, so after running it you'll need to edit Config.mk to comment out INLINE_OPTS, add -Winline to CXXFLAGS, and change the default -O3 to -Os a little further down. The location of the resulting errors varies on different machines, but I always get them. Doing a test build now, I'm getting:
Compiling cmemlink.cc ... Compiling fdostream.cc ... cc1plus: warnings being treated as errors memlink.h: In member function 'char* ustl::ostream::ipos()': memlink.h:74: warning: inlining failed in call to 'char* ustl::memlink::begin()': --param max-inline-insns-single limit reached mostream.h:62: warning: called from here make: *** [cmemlink.o] Error 1 make: *** Waiting for unfinished jobs.... cc1plus: warnings being treated as errors mistream.h: In member function 'virtual size_t ustl::istream::underflow(size_t)': mistream.h:84: warning: inlining failed in call to 'size_t ustl::istream::remaining() const': --param max-inline-insns-single limit reached mistream.h:81: warning: called from here make: *** [fdostream.o] Error 1 Both begin() and remaining() are as simple as functions get, the former returning a member pointer, the latter subtracting two values. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24947