Quoting Andreas Schwab <[EMAIL PROTECTED]>:

> "Bruce Korb" <[EMAIL PROTECTED]> writes:
>
>> It seems awfully bizarre that POSIX disallows the portability of
>> capturing the value given to siglongjmp().  It is very counter
>> intuitive.
>
> (sig)setjmp is very special because it returns twice.  Thus it needs
> compiler support to do it right wrt. register allocation.  For example,
> the compiler may load (part of) the address of the variable that should
> hold the return value of (sig)setjmp in a callee saved register.  On the
> second return the register contents may already have been overwritten by
> the code that was executed after the first return (longjmp may not restore
> all register contents), causing the subsequent store to go to lala land.
>
> For sigsetjmp POSIX just copied the restrictions that the C standard
> places on setjmp.
>

You might be able to store the value of setjmp in the environment and 
then grab the value from the environment after the longjmp.  Cygwin 
does this in its fork emulation but YMMV on various systems.

Earnie Boyd
--
Please post responsibly:
* Use text posts instead of html; many list members just trash mail with html.
* Do not use multipart mime to send both text and html versions.
* Do not top post replies; post inline with the parts you are responding to.
* Trim the post replies; remove irrelevant information from the quoted 
article.
* Original posters:
  ** Provide small complete examples of the problem.
  ** Provide the full command that produced errors.
  ** Provide the versions of the software used.
--
******************************************************************************
* The user of this server has agreed to allow the use of a trailer in the    *
* mail that he sends for advertising purposes.  This advertisment is added   *
* by the server and is not in the control of the user of our services.       *
******************************************************************************

Toshiba Satellite P105-S6114 Notebook
http://give-me-an-offer.com/offers/computers/laptop/toshiba

PlayStation 3 Auctions
http://give-me-an-offer.com/offers/auctions/au1

Samsung HP-S4253 42" High Definition Plasma TV
http://give-me-an-offer.com/offers/tv/plasma


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to