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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2005 14:18:55 -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 #9 from pinskia at gcc dot gnu dot org 2005-10-28 14:18 -------
(In reply to comment #8)
> 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.
Actually there is no easy way to implement that as the information about what
function is inlined where is lost very early on.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24556