[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#164554: gcc-3.2: volatile not respected on alpha



On Mon, Oct 14, 2002 at 06:01:24PM -0400, Daniel Jacobowitz wrote:
> 
> I don't see the problem.  Volatile in C doesn't provide any sort of
> barrier; you have to place one yourself if you want one.  It only
> guaranatees that the two accesses to "i" will not be reordered or
> eliminated.

My copy of C99 says:

5    The least requirements on a conforming implementation are:
     - At sequence points, volatile objects are stable in the sense that previou
     s accesses are
         complete and subsequent accesses have not yet occurred.
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



Reply to: