This is the mail archive of the gcc-bugs@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]

[Bug middle-end/24556] gcc can't inline functions using setjmp



------- 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


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