mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-09 05:10:23 +00:00
Second and last gcc 4.3.2 PowePC workaround.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11354
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user