This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH: PR 10180


> 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 at codesourcery dot com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]