longjmp()/setjmp() difference between gcc 3.3 (Apple) and gcc 3.4.x

Clifford Wolf clifford@clifford.at
Sun Jan 23 13:34:00 GMT 2005


Hi,

On Sat, Jan 22, 2005 at 03:30:49PM -0800, Richard Henderson wrote:
> On Sat, Jan 22, 2005 at 06:41:32PM +0100, Remy X.O. Martin wrote:
> > setjmp() needs to be called only once, I think..
> 
> Incorrect.  Once you leave the frame in which setjmp was called,
> the contents of the jmpbuf become invalid.

Also, you should think about using sigsetjmp() and siglongjmp() when
jumping from signal context back to "normal" program context..

yours,
 - clifford

-- 
  _________  ____ __      __  $_ = q 7nz!y="Ccv'Dpgiutvcbb'oj'Pocj'*'qqq[
 / ___/ __ \/ __ `/ | /| / /  ej`q[iv`";!|=1;!y=~t%].[%nz!z=!1;gps]1..6[{
/ /__/ / / / /_/ /| |/ |/ /   qsjou"!z\c";tfmfdu]voefg,voefg,voefg,0.05[;
\___/_/ /_/\__, / |__/|__/    !z=~t/].[/dis]pse]!1[^!_[/fh;}qsjou !z;%fh;
 CCC Wien /____/www.cngw.org  qsjou "\o"7;s/\n//g;y/[b-za]!/)a-z($/;eval;
 
Engineers have to understand that they are not perfect.
All the others have to understand that they are not engineers. 
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20050123/3f9667e8/attachment.sig>


More information about the Gcc mailing list