C++ PATCH: PR 10180

Mark Mitchell mark@codesourcery.com
Tue Apr 29 17:01:00 GMT 2003


> t.c: In function `void foo()':
> /usr/include/setjmp.h:52: warning: inlining failed in call to `int 
>    _setjmp(__jmp_buf_tag*)'
> t.c:3: warning: called from here
That means your system headers are declaring setjmp inline in C++, but
not C, I think.
 
> > And the compiler is telling you something valuable -- it cannot inline
> > functions which contain calls to setjmp.
> 
> As far as I can tell, that is only true for the C++ front end, which
> makes explicit checks for setjmp calls in optimize.c.

This probably represents a bug in the C front end.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com



More information about the Gcc-patches mailing list