Restored original code for other compilers than ppc gcc 4.3.0 such that at least one test invokes ANNOTATE_UNPROTECTED_READ().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11355
This commit is contained in:
Bart Van Assche
2010-09-13 17:44:10 +00:00
parent 04c016c63b
commit c6cf2bb4ff

View 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;
}