Use __asm__ instead of asm

This is a little more robust as various compiler flags make
gcc forget about asm.

https://bugzilla.gnome.org/show_bug.cgi?id=693299
This commit is contained in:
Matthias Clasen 2014-01-20 08:43:02 -05:00
parent ff9a61eed9
commit 2330f7e65e

View File

@ -208,7 +208,7 @@ g_bit_lock (volatile gint *address,
{
#ifdef USE_ASM_GOTO
retry:
asm volatile goto ("lock bts %1, (%0)\n"
__asm__ volatile goto ("lock bts %1, (%0)\n"
"jc %l[contended]"
: /* no output */
: "r" (address), "r" (lock_bit)
@ -281,7 +281,7 @@ g_bit_trylock (volatile gint *address,
#ifdef USE_ASM_GOTO
gboolean result;
asm volatile ("lock bts %2, (%1)\n"
__asm__ volatile ("lock bts %2, (%1)\n"
"setnc %%al\n"
"movzx %%al, %0"
: "=r" (result)