From: SF/projects/mingw n. l. <min...@li...> - 2012-06-25 17:39:43
|
Bugs item #3420424, was opened at 2011-10-07 13:09 Message generated for change (Comment added) made by bwanamarko You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3420424&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: w32api Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Earnie Boyd (earnie) Assigned to: Chris Sutcliffe (ir0nh34d) Summary: MemoryBarrier macro Initial Comment: http://msdn.microsoft.com/en-us/library/ms684208(VS.85).aspx Just documenting we need to get this added to winnt.h for WINVER >= 0x0502 ---------------------------------------------------------------------- Comment By: Mark Mikofski (bwanamarko) Date: 2012-06-25 10:39 Message: In fact, unfortunately, it appears as if freedesktop.org is not going to support mingw32 anymore, and they are switching to mingw-w64. The following bug status is listed as WONTFIX! https://bugs.freedesktop.org/show_bug.cgi?id=41423 - dbus Bugzilla Bug 41423 - MemoryBarrier only available on Vista+ Any plans to merge or reunite mingw32 and mingw-w64? ---------------------------------------------------------------------- Comment By: Mark Mikofski (bwanamarko) Date: 2012-06-25 09:45 Message: Hi -- thanks for mingw! It is an indispensible tool for windows! Please consider bumping this issue. freedesktop.org dbus also uses the MemoryBarrier macro, so trying to compile without adding patch below will fail with mingw in current form (2012-06-25). The current mindset on mailing lists is that the patch should be applied to mingw (not dbus). Thanks! --Mark possible patch supplied by Mark Brand/Brad Pitcher for windows.h (or ?) __CRT_INLINE VOID MemoryBarrier(VOID) +{ + LONG Barrier = 0; + __asm__ __volatile__("xchgl %%eax,%0 " + :"=r" (Barrier)); +} ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3420424&group_id=2435 |