Using Relacy 2.0 on Win64 with MSVC 2005

6 views
Skip to first unread message

edward

unread,
Nov 4, 2009, 12:16:31 PM11/4/09
to Relacy Race Detector
Hi,

There are some minor issues compiler Relacy 2.0 using MSVC 2005, 64-
bit.

- When compiling, I get warnings similar to the following.

thread_local.hpp(151) : warning C4311: 'type cast' : pointer
truncation from 'rl::thread_local<T> *' to 'unsigned long'
with
[
T=void *
]

- When compiling with RL_DEBUGBREAK_ON_FAILURE defined, I got errors
from the compiler complaining about __asm not available for my
architecture. So I had to change the define for
RL_DEBUGBREAK_ON_FAILURE_IMPL:

#define RL_DEBUGBREAK_ON_FAILURE_IMPL {if (IsDebuggerPresent())
DebugBreak(); }
#define RL_DEBUGBREAK_ON_ASSERT_IMPL {if (IsDebuggerPresent())
DebugBreak(); }

Regards,
-Edward

Dmitriy Vyukov

unread,
Nov 30, 2009, 12:55:20 AM11/30/09
to Relacy Race Detector
Thank you, Edward! I will incorporate the fix into next release.


--
Dmitriy V'jukov
Reply all
Reply to author
Forward
0 new messages