This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/24556] gcc can't inline functions using setjmp
- From: "samuel dot thibault at ens-lyon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2005 08:27:35 -0000
- Subject: [Bug middle-end/24556] gcc can't inline functions using setjmp
- References: <bug-24556-11603@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from samuel dot thibault at ens-lyon dot org 2005-10-28 08:27 -------
Subject: Re: gcc can't inline functions using setjmp
pinskia at gcc dot gnu dot org, le Fri 28 Oct 2005 01:39:59 -0000, a écrit :
> So this is not a bug.
Yes this is a bug. The docs for setjmp are really clear about the fact
automatic variables of the callee might be thrashed, but that doesn't
entail that the callee can't be inlined. Gcc doesn't implement anything
for getting semantic right, but it is feasible, I explained how. So it
is a bug.
But you don't want to fix it. Too bad for us.
I thought that "An Inline Function is As Fast As a Macro". It is not.
<grin>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24556