Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Przemek Klosowski <przemek@rrdjazz.nist.gov>
Subject: Re: gcc compiler warning
Date: Mon, 23 Feb 1998 09:37:14 -0500	[thread overview]
Message-ID: <199802231437.JAA04904@rrdjazz.nist.gov> (raw)

I've got a program which gets the following warnings when I compile with
   -Wall.  Can anyone tell me what this is trying to say?  How would these
   varibles get "clobbered"?  How can I prevent this?

   function `gpi_EvaluateGeneration':
   gpi.c:336: warning: variable `i' might    be clobbered by `longjmp' or `vfork'

Register-based local variables are not guaranteed to be preserved
across longjump (and also I guess vfork); in other words if you do
setjmp, and then longjmp to it, you aren't guaranteed to see the
values of register-based local variables as they were at time of
setjmp; this is because setjmp/longjmp save/restore the stack only.

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1998-02-23 14:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-23 14:37 Przemek Klosowski [this message]
1998-02-24  0:31 ` gcc compiler warning Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1998-02-23  8:07 Jim. Shipman
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox