Re: [spice-protocol] Use gcc builtin rather than asm for memory barriers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/08/2016 11:41 AM, Frediano Ziglio wrote:

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


According to https://gcc.gnu.org/releases.html gcc 4.4 was released on April 2009.
According to packages.ubuntu.com precise (12.04) supports gcc 4.4.
Unless we want to compile with a RH 5 looks like 4.4 should be available.
On the other side you never know on which environment people wants to compile stuff
but I vote to just assume gcc 4.4.

Frediano


OK.
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]