--- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-27 13:37 ---
This is not a bug as if you inline it, the place setjmp goes to could be not
where you want to goto.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #2 from samuel dot thibault at ens-lyon dot org 2005-10-27
13:45 ---
Subject: Re: gcc can't inline functions using setjmp
pinskia at gcc dot gnu dot org, le Thu 27 Oct 2005 13:37:32 -, a écrit :
> This is not a bug as if you inline it, the place setjmp goes to could b
--- Comment #3 from rguenth at gcc dot gnu dot org 2005-10-27 14:11 ---
I believe it should be safe to inline, as inlining can only make a previously
invalid use of sjlj valid, but not the other way around.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24556
--- Comment #4 from samuel dot thibault at ens-lyon dot org 2005-10-28
00:21 ---
Well, there is indeed an issue: the address of some local variables might be
passed to other functions and then be modified in an external way between
setjmp() and longjmp(), and if some local variables are
--- Comment #5 from pinskia at gcc dot gnu dot org 2005-10-28 00:37 ---
(In reply to comment #4)
That is not really GCC's fault.
Let me look into why setjmp was caused not to inline, there was a reason.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24556
--- Comment #6 from samuel dot thibault at ens-lyon dot org 2005-10-28
00:47 ---
Subject: Re: gcc can't inline functions using setjmp
pinskia at gcc dot gnu dot org, le Fri 28 Oct 2005 00:37:47 -, a écrit :
> Let me look into why setjmp was caused not to inline, there was a reason