[Spice-devel] [spice-protocol] Use gcc builtin rather than asm for memory barriers

Christophe Fergeau cfergeau at redhat.com
Fri Jan 8 00:20:02 PST 2016


On Thu, Jan 07, 2016 at 09:35:34PM +0200, Uri Lublin wrote:
> On 01/06/2016 12:26 PM, Christophe Fergeau wrote:
> >This should make things more portable.
> 
> Hi Christophe,
> 
> This only works for building with (not too old) gcc.
> 
> It would be safer to check that in configure and
> add a conditional here.

This works starting from 4.4 (sync_synchronize was available before but
broken on x86 if I read
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36793 correctly).
EL6 has gcc 4.4 as Frediano pointed out, so I think we'll be fine
with this.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20160108/1613fb3c/attachment.sig>


More information about the Spice-devel mailing list