From 41ea38fc7ca28b57dced01df2fa809b8a0f8172c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 16 Mar 2008 10:04:58 +0000 Subject: [PATCH] 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 --- exp-drd/drd_barrier.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/exp-drd/drd_barrier.c b/exp-drd/drd_barrier.c index dc7b46ddef..0d5f053cfa 100644 --- a/exp-drd/drd_barrier.c +++ b/exp-drd/drd_barrier.c @@ -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) -- 2.47.3