]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Restored original code for other compilers than ppc gcc 4.3.0 such that at least...
authorBart Van Assche <bvanassche@acm.org>
Mon, 13 Sep 2010 17:44:10 +0000 (17:44 +0000)
committerBart Van Assche <bvanassche@acm.org>
Mon, 13 Sep 2010 17:44:10 +0000 (17:44 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11355

drd/tests/annotate_static.cpp

index 6c6fbabf7e8da9d5c1f69acc63fbf0b234ed35e0..25ffd47e6cc24d50a162b811b86af2369abf7fd5 100644 (file)
@@ -21,10 +21,15 @@ static inline void AnnotateIgnoreReadsEnd() { ANNOTATE_IGNORE_READS_END(); }
 
 static void* thread_func(void*)
 {
+#if defined(__powerpc__) && __GNUC__ -0 == 4 && __GNUC_MINOR__ -0 == 3 \
+    && __GNUC_PATCHLEVEL__ -0 == 0
   AnnotateIgnoreReadsBegin();
   int i = s_j;
   AnnotateIgnoreReadsEnd();
   s_i = i;
+#else
+  s_i = ANNOTATE_UNPROTECTED_READ(s_j);
+#endif
   return 0;
 }