This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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. 
 

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]