Volatile is Necessary

John Myers jgm at K.GP.CS.CMU.EDU
Thu Mar 31 04:41:22 AEST 1988


Is R. Stallman's reading of the ANSI draft wrong, or isn't it
necessary to declare automatic variables as 'volatile' in order to
guarantee that their values will be preseved across a setjmp/longjmp?
(as otherwise they could be placed in registers)

If RMS is right, then the committee botched setjmp/longjmp.

-- 
_.John G. Myers		Internet: John.Myers at cs.cmu.edu
			LoseNet:  ...!seismo!hao!wiscvm.wisc.edu!k!nobody



More information about the Comp.lang.c mailing list