incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Liviu Nicoara <nikko...@hates.ms>
Subject [PATCH] STDCXX-853
Date Sun, 23 Sep 2012 15:34:26 GMT
Umm, I didn't think to search for a corresponding incident and I considered the defect to be
so minor as to not warrant an issue. The following patch has been applied already on 4.2.x:

Index: tests/support/atomic_xchg.cpp
===================================================================
--- tests/support/atomic_xchg.cpp       (revision 1388732)
+++ tests/support/atomic_xchg.cpp       (revision 1388733)
@@ -297,7 +297,7 @@ void run_test (intT, thr_args_base::tag_
      // compute the expected result, "skipping" zeros by incrementing
      // expect twice when it overflows and wraps around to 0 (zero is
      // used as the lock variable in thread_routine() above)
-    intT expect = intT (1);
+    intT volatile expect = intT (1);
  
      const unsigned long nincr = (Args::nthreads_ * Args::nincr_) / 2U;
          

Mime
View raw message