------- Additional Comments From akr at m17n dot org  2005-06-20 17:22 -------
It's because getcontext is similar to setjmp.

Since setjmp/getcontext doesn't save registers in register window, modifications
to the registers between first setjmp/getcontext return and longjmp/setcontext
call is retained for second return from setjmp/getcontext via  
longjmp/setcontext.

It seems that gcc knows setjmp is special but doesn't know about getcontext.

Note that getcontext is defined by Single Unix Specification.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |c


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22127

Reply via email to