]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Second and last gcc 4.3.2 PowePC workaround.
authorBart Van Assche <bvanassche@acm.org>
Sat, 11 Sep 2010 10:07:56 +0000 (10:07 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sat, 11 Sep 2010 10:07:56 +0000 (10:07 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11354

drd/tests/annotate_static.cpp

index 154ee030deb26a830c363fdd59b706bb082902b1..6c6fbabf7e8da9d5c1f69acc63fbf0b234ed35e0 100644 (file)
@@ -16,9 +16,15 @@ ANNOTATE_BENIGN_RACE_STATIC(s_i, "Benign because duplicate assignment.");
 
 /* Local functions. */
 
+static inline void AnnotateIgnoreReadsBegin() { ANNOTATE_IGNORE_READS_BEGIN(); }
+static inline void AnnotateIgnoreReadsEnd() { ANNOTATE_IGNORE_READS_END(); }
+
 static void* thread_func(void*)
 {
-  s_i = ANNOTATE_UNPROTECTED_READ(s_j);
+  AnnotateIgnoreReadsBegin();
+  int i = s_j;
+  AnnotateIgnoreReadsEnd();
+  s_i = i;
   return 0;
 }