[Webkit-unassigned] [Bug 87790] New: WTF TCSpinLock.h doesn't compile for x64 with Visual Studio
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 29 16:08:59 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=87790
Summary: WTF TCSpinLock.h doesn't compile for x64 with Visual
Studio
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Windows 7
Status: UNCONFIRMED
Severity: Trivial
Priority: P4
Component: WebKit Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: alex.christensen at flexsim.com
CC: paroga at paroga.com
The file Source/WTF/wtf/TCSpinLock.h contains assembly code with an __asm keyword that compiles with Visual Studio for x86, but not for x64. Code that uses the intrinsic InterlockedExchange function has already been written below, but the #if incorrectly does not use it when MSVC is compiling for a 64 bit machine. This can be fixed by changing line 37 from
#if (CPU(X86) || CPU(X86_64) || CPU(PPC)) && (COMPILER(GCC) || COMPILER(MSVC))
to
#if (CPU(X86) || CPU(X86_64) || CPU(PPC)) && COMPILER(GCC) || CPU(X86) && COMPILER(MSVC)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list