An error message is now printed if DRD is started with a client program that loads a version of libgomp.so that has been compiled with --enable-linux-futex.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7702
This commit is contained in:
Bart Van Assche
2008-03-16 10:04:58 +00:00
parent 6805b6a315
commit 41ea38fc7c

View File

@@ -261,6 +261,16 @@ void barrier_pre_wait(const DrdThreadId tid, const Addr barrier,
const UWord word_tid = tid;
p = barrier_get(barrier);
if (p == 0 && barrier_type == gomp_barrier)
{
VG_(message)(Vg_UserMsg, "");
VG_(message)(Vg_UserMsg,
"Please verify whether gcc has been configured"
" with option --disable-linux-futex.");
VG_(message)(Vg_UserMsg,
"See also the section about OpenMP in the DRD manual.");
VG_(message)(Vg_UserMsg, "");
}
tl_assert(p);
if (s_trace_barrier)