access to a volatile variable

Alexandre Oliva oliva@dcc.unicamp.br
Wed Jun 30 23:07:00 GMT 1999


On Jun 23, 1999, Nathan Sidwell <nathan@acm.org> wrote:

> If you've got a volatile T object and you really don't want to read
> it, why on Earth would you write `object;'?

I might write `foo();', where foo returns `volatile bar_t&'.  Would
this cause the returned bar_t to be read?  Should `(void)foo();'?
Note, I'm *explicitly* throwing away the result of the function,
should it be used regardless of my request?

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists



More information about the Gcc-bugs mailing list