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: Optimization of conditional access to globals: thread-unsafe?


Bart Van Assche writes:
 > On 10/27/07, Florian Weimer <fw@deneb.enyo.de> wrote:
 > 
 > > And this isn't really specific to threads.

 > What I was trying to explain is that it is not necessary to declare
 > shared variables volatile, not for any C/C++ compiler that is
 > compliant with the language standard.

Sadly, you didn't quote any language in the standard to justify such a
statement.  If you expect anyone to take you seriously you'll have to
do that.  For what it's worth, I don't believe that's what the ISO C
standard says.

In any case, this discussion is pointless: we are moving towards
tracking the proposed memory model, which solves the problem.

Andrew.


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