This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fobey-inline (was Re: gcc and inlining)
- From: dewar at gnat dot com (Robert Dewar)
- To: dalej at apple dot com, dewar at gnat dot com
- Cc: Richard dot Earnshaw at arm dot com, aph at redhat dot com, echristo at redhat dot com,gcc at gcc dot gnu dot org
- Date: Thu, 13 Mar 2003 22:00:16 -0500 (EST)
- Subject: Re: -fobey-inline (was Re: gcc and inlining)
> #include <setjmp.h>
> static jmp_buf buf;
> inline void x() { setjmp(buf); }
> main() { x(); longjmp(buf); }
>
I don't know the C standard well enough in my head to be sure, but I would be
*amazed* if this is a semantically valid C program. It can't be right to "wake up"
an expired scope with a longjmp, can it? Of course one can be surprised when it
comes to C :-)